i++
can be placed in unchecked blocks to save on gas as the bounds are already enforced.
i++
can be placed in unchecked blocks to save on gas as the bounds are already enforced.
Gas
Manual Review
Place i++
in unchecked block. Consider the snippet below:
With this change made to all the loops in Lender.sol
except the one in Lender.refinance()
, a gas saving of ~110
gas was observed across tests. With a total gas saving of 1556
gas across all tests.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.