The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Violation of Constant Variable Naming Conventions

Summary

In Solidity, constant variables should be named using all capital letters with underscores separating words. This is a widely accepted convention for naming constants in Solidity and many other programming languages. Examples of such constant variable names could be MAX_BLOCKS

uint8 constant public MAX_BLOCKS = 100;

Impact

It can lead to confusing bugs and make code harder to maintain.

Tools Used

Manual review

Recommendations

Adhere to solidity naming conventions

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

informational/invalid

Support

FAQs

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