beatToken
could be ImmutableState variables taht are only changed during the deployment in the constructor should be declared immutable to save gas.
beatToken
is set in the contructor and then beatTokne will not be changed in the FestivalPass
contract.
Likelihood:
High, it occurs at deployment
Impact:
Increased gas cost during deployment due to unnecessary storage writes.
Higher ongoing gas costs for reading non-immutable state variables, reducing contract efficiency.
N/A
Change beatToken form public to immutable
Also, keep in mind by this change, the getter fucntion will be loss, so getBeatToken
might be implemeted if needed.
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.