Preincrement costs less gas than Post Increment
Lines 118, 353 in DSCEngine use the 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 instances of for loops leading to significant gas savings.
Manual Analysis
DSCEngine.sol line 118 i++ replaced with ++i
DSCEngine.sol line 353 i++ replaced with ++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.