Closed 0x00000002 closed 6 years ago
MiniMeToken.sol, line 160:
var previousBalanceFrom = balanceOfAt(_from, block.number); if (previousBalanceFrom < _amount) { return false; }
It check the balance before checking if the distribution is over, in the next few lines:
if (isContract(controller)) { require(TokenController(controller).onTransfer(_from, _to, _amount)); }
You can save a gas on reading the storage if change the order of these checks.
Require will refund all the gas spent if it fails so it doesn't matter what order it is called in.
Require
MiniMeToken.sol, line 160:
It check the balance before checking if the distribution is over, in the next few lines:
You can save a gas on reading the storage if change the order of these checks.