The method getAccountCollateralValue
in the DSCEngine contract contains the following loop:
As the upper bound of the iterator is the length of an array, it will not overflow, thus the incrementaion can be moved to unchecked
block for gas savings.
n/a
Unnecessary gas consumption
Manual review
Consider changing the loop code block as suggested in summary.
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.