Omniscia DappRadar Audit
RadarToken Code Style Findings
RadarToken Code Style Findings
RTN-01C: Loop Iterator Optimization
Type | Severity | Location |
---|---|---|
Gas Optimization | RadarToken.sol:L23 |
Description:
The linked for
loop increments / decrements the iterator "safely" due to Solidity's built-in safe arithmetics (post-0.8.X
).
Example:
contracts/RadarToken.sol
23for (uint i; i < _mintAddresses.length; i++) {
Recommendation:
We advise the increment / decrement operation to be performed in an unchecked
code block as the last statement within the for
loop to optimize its execution cost.
Alleviation (8614454f02ec2934ccfdc3f17974be01ca6c1709):
The DappRadar team has not provided any remediation for this exhibit instead opting to acknowledge it.