Beginner FriendlyFoundryDeFiOracle
100 EXP
View results
Submission Details
Severity: low
Invalid

The 'setAllowedToken' function returns a value that may not be useful and additionally contains redundant code

Summary

Vulnerability Details

The 'setAllowedToken' method returns the 'AssetToken' address. Please ensure that it serves a useful purpose; if not, consider removing the return value to conserve gas.

Both the 'if' and 'else' branches include 'emit' and 'return' statements, which can be optimized.

Impact

Tools Used

Recommendations

Remove the return value and eliminate redundant code.

Updates

Lead Judging Commences

0xnevi Lead Judge
over 1 year ago
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Gas optimizations

Support

FAQs

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