Variables that are set once in the constructor and never updated should be marked as immutable
to optimize gas costs and improve code clarity.
The initialGracePeriod
variable is set in the constructor but never updated later, only used as a template for resetting game state.
Likelihood:
Gas optimization opportunity is always available
Deployment costs are higher than necessary
Impact:
Higher deployment gas costs due to unnecessary storage slot allocation
Less explicit code intent about variable mutability
Missed gas optimization opportunity
Potential for accidental modification of template values
Add to immutable:
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.