Immediately return the value found when searching for an element in an array saves gas and prevents from gas griefing attacks.
Avoid wasting gas by returning in a for
-loop used to find an item in a list.
Refactor the SmartVaultV3::getToken
function as follows to save gas.
Gas
Manual review
Change SmartVaultV3::getToken()
as shown above.
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.