DRI-network / RICO

The Responsible Initial Coin Offering Framework
GNU General Public License v3.0
92 stars 19 forks source link

Add ether withdrawal strategy for Round #6

Closed syrohei closed 6 years ago

syrohei commented 6 years ago

We could to withdraw ether from contract when execTime elapsed.

function addWithdrawalRound( uint256 _roundWithdrawal, uint256 _execTime, address _to) returns (bool) {}

permission

syrohei commented 6 years ago
for (uint i = 0; i < wRounds.length; i++) {

      WithdrawalRound memory wr = wRounds[i];

      if (wr.isMarketMaker)
        totalWithdrawalWeiToMM = totalWithdrawalWei.add(wr.distributeWei);
      else
        totalWithdrawalWei = totalWithdrawalWei.add(wr.distributeWei);

    }

execute from MM and other