MyCut

First Flight #23
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Constants should be named in uppercase and with underscores

Summary

Constant values in the code should be in uppercase and with underscores in order to maintain solidity naming conformations.

Vulnerability Details

LoC:
https://github.com/Cyfrin/2024-08-MyCut/blob/946231db0fe717039429a11706717be568d03b54/src/Pot.sol#L20

Impact

No such impact, provides more clarity

Tools Used

Manual Review

Recommendations

Make the following changes:

- uint256 private constant managerCutPercent = 10;
+ uint256 private constant MANAGER_CUT_PERCENT = 10;
Updates

Lead Judging Commences

equious Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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