attendPerformance
causing extra gas usageNormally user will buy festival pass and call attendPerformance
to earn BEAT
The require condition in attendPerformance
below checks if the current block timestamp is equal or bigger than the last time user checks in plus COOLDOWN
, but it will still apply a COOLDOWN
even though it's the user first time checking in for the first performance, thus causing extra gas used to users earning BEAT for the first time
Likelihood:
Basically happens for every first call on attendPerformance
for any users so it's highly likely
Impact:
Causing unnecessary gas usage to users when they first call attendPerformance
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.