Closed code423n4 closed 2 years ago
defsec
++i is more gas efficient than i++ in loops forwarding.
https://github.com/code-423n4/2022-01-yield/blob/main/contracts/ConvexYieldWrapper.sol#L111
Code Review
It is recommend to use unchecked{++i} and change i declaration to uint256.
Duplicate of #14
Handle
defsec
Vulnerability details
Impact
++i is more gas efficient than i++ in loops forwarding.
Proof of Concept
Tools Used
Code Review
Recommended Mitigation Steps
It is recommend to use unchecked{++i} and change i declaration to uint256.