Open code423n4 opened 2 years ago
Change the incremental logic from i++ to ++i in order to save some opcodes:
i++
++i
Use delete instead of set to default value (false or 0)
false
0
Cache static keccak256 in order to reduce the computation.
keccak256(abi.encodePacked("cETH")
Remove returns because always returns the same value.
Change the incremental logic from
i++
to++i
in order to save some opcodes:Use delete instead of set to default value (
false
or0
)Cache static keccak256 in order to reduce the computation.
keccak256(abi.encodePacked("cETH")
at CTokenRegistry.sol#L67Remove returns because always returns the same value.