++i is more gas efficient than i++ for loops. #6
Labels
bug
Warden finding
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
pants
Vulnerability details
At all loops definitions, you used i++ instead ++i although ++i is more gas efficient.
An even better approach is to use unchecked {++i}, since you are using solidity version >=0.8.
The text was updated successfully, but these errors were encountered: