15,000 USDC
View results
Submission Details
Severity: gas

isAllowedToken modifier

Summary

When checking to see if address is equal to 0 then reverting, it could also check to see that the address of the token given is in the s_collateralTokens array. Also making a separate modifier instead that specifically checks if address given is equal to 0 would be better.

Vulnerability Details

Impact

Tools Used

Recommendations

Support

FAQs

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