HardhatFoundry
30,000 USDC
View results
Submission Details
Severity: low
Invalid

unneeded reading from `storage` excessively increases the necessary amount of gas, needed to perform a transaction

Summary

If you have a view function, you can just copy a storage into a memory variable

Vulnerability Details

By changing the unnecessary storage specifier into memory, you decrease the gas cost of a transaction, since reading from storage is a costly operation

Impact

excessively increased gas cost

Tools Used

manual review

Recommendations

in all view functions, change the storage specifier to memory

Updates

Lead Judging Commences

0xnevi Lead Judge
11 months ago
0xnevi Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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