Gas Optimizations #199
Labels
bug
Something isn't working
G (Gas Optimization)
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
Prefix increments are cheaper than postfix increments.
Handle
tchkvsky
Vulnerability details
These functions use not using prefix increments (
++x
)Impact
Using prefix increment is more gas efficient
Proof of Concept
DexManagerFacet.sol
#L33
#L52
#L65
Swapper.sol
#L14
Tools Used
Manual review
Recommendation
Consider using prefix increments (++i) to save gas
The text was updated successfully, but these errors were encountered: