Open code423n4 opened 2 years ago
changing visibility modifiers from public to external saves gas
fix pragma, avoid floating pragma and better if atleast 0.8.4 to get compiler benefits and optimisations
use indexed for address in events comptroller.sol #21-24
event MarketEntered(CToken cToken, address account); /// @notice Emitted when an account exits a market event MarketExited(CToken cToken, address account);
use prefix ++i rather than suffix i++ to save gas and no need to init i, as done in other contracts comptroller.sol #119,199,591,949,1223
for (uint i = 0; i < cTokens.length; i++)
gas1:
changing visibility modifiers from public to external saves gas
gas2:
fix pragma, avoid floating pragma and better if atleast 0.8.4 to get compiler benefits and optimisations
gas3:
use indexed for address in events comptroller.sol #21-24
gas4:
use prefix ++i rather than suffix i++ to save gas and no need to init i, as done in other contracts comptroller.sol #119,199,591,949,1223