Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Add immutable for some variables

Summary

Add immutable for some variables, which can save more gas

Vulnerability Details

take variables as immutable, which means the varaibels store in the contract's code instead of storage space.

Impact

Cost more gas

Tools Used

slither

Recommendations

For the unchanged variables, add immutable

ScoreBoard.owner (src/ScoreBoard.sol#21) should be immutable
ThePredicter.entranceFee (src/ThePredicter.sol#21) should be immutable
ThePredicter.organizer (src/ThePredicter.sol#19) should be immutable
ThePredicter.predictionFee (src/ThePredicter.sol#22) should be immutable
ThePredicter.scoreBoard (src/ThePredicter.sol#23) should be immutable

Updates

Lead Judging Commences

NightHawK 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.