40,000 USDC
View results
Submission Details
Severity: gas

Functions guaranteed to revert when called by normal users can be marked `payable`

Summary

If a function modifier such as inState is used, the function will revert if a normal user tries to pay the function. Marking the function as payable will lower the gas cost for legitimate callers because the compiler will not include checks for whether a payment was provided.

Tools Used

Manual Review

Recommendations

mark payable to functions

Support

FAQs

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