Closed code423n4 closed 2 years ago
defsec
++i is more gas efficient than i++ in loops forwarding.
https://github.com/code-423n4/2021-12-vader/blob/main/contracts/tokens/USDV.sol#L152
Code Review
It is recommend to use unchecked{++i} and change i declaration to uint256.
Dup #123
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.