Improve readability (e.g., SECONDS_IN_A_DAY
instead of 86400
)
Allow easy future adjustments
Slightly reduce gas costs if reused
A better practice.
The Game.sol Contract uses hardcoded literals which is not a good practice , a good practice would be to declare a Constant Variable one time in the contract and use it throughout the Contract
Decrease readability, especially in large contracts.
Make the code harder to maintain or refactor.
Slightly increase gas usage (if the literal is reused multiple times instead of a constant
).
Impact: Low/Informational
affects the Readability of the code
Can get Confusing if Code increases in Size
Bad Practice!
Wherever u see literal 100 being used or in general literals being used u should declare a Constant Variable and use it in that place instead of Literals.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.