20,000 USDC
View results
Submission Details
Severity: gas

Use `require` instead of `if` with `revert`

Summary and Recommendations

Even though there's no significant difference in gas cost, it's generally recommended to use require for input validation and pre-condition checks, and if with revert for more complex logic.

This is applicable across the whole codebase

Tools Used

Manual Review

Support

FAQs

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