Preincrement costs less gas than Post Increment
Links above have code parts where post increment i++ in the loop iterations. This is more expensive than the preincrement form ++i.
Gas Savings: Preincrement ++i saves 5 less gas compared to i++. Therefore each loop iteration saves 5 gas which multiples with number times loop called and number instances of for loops leading to significant gas savings. e.g 5 gas * 20 loop iterations * 7 instances of for loops = gas savings to project for these seemingly small change
Manual Analysis
It is recommended to change all the incremements in all loops to form of ++i vs i++ e. g Lender.sol line 233
for (uint256 i = 0; i < borrows.length; ++i) { // note that a further optimization is to place unchecked {++i}
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.