20,000 USDC
View results
Submission Details
Severity: gas
Valid

using private for constants save gas

Summary

using private for constants save gas

Vulnerability Details

Marking constants as private save gas upon deployment, as the compiler does not have to create getter functions for these variables. It is worth noting that a private variable can still be read using either the verified contract source code or the bytecode. This may affect readability so this is left at the team’s discretion

Impact

Tools Used

manual review

Recommendations

Make the constants private instead of public

Support

FAQs

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