Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Magic Numbers

Description: All literal numbers should be replaced with constants. This makes the code more readable and easier to maintain. Numbers without context are called "Magic Numbers".

Recommended Mitigation: For example:

+ uint256 public constant MAX_THRESHOLD = 100;
- require(newThreshold <= 100, "Threshold must be <= 100");

Replace MAX_THRESHOLD with 100.

Updates

Lead Judging Commences

m3dython Lead Judge 2 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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