optimizing for loops by using unchecked{++i} over i++ #12
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
pants
Vulnerability details
optimizing for loops by using unchecked{++i} over i++
For example in line 535 of SwapUtils.sol you have
While a more effiient looping would be:
One cannot reach uint256 maximal value so it's overflow safe.
The text was updated successfully, but these errors were encountered: