The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

`SmartVaultV3` Cache array length outside of loop gas gas optimization

Summary

compiler will always read the length of the array during each iteration.

Vulnerability Details

A memory array, this is an extra mload operation

Impact

3 additional gas for each iteration except for the first

Tools Used

Recommendations

store the length of the array in a variable

Updates

Lead Judging Commences

hrishibhat Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

informational/invalid

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.