s_earnTimer
is not address specific so nobody will be able to earn Snow for a week after one address has called the Snow::earnSnow()
functionThe Snow
contract uses a variable s_earnTimer
to keep track of the last time a Snow was earned
However, the variable is not address specific. So once earnSnow()
has been called, the function will be uncallable by anyone for a week
Likelihood:
Very high. Whenever someone calls the earnSnow()
for the first time in a week
Impact:
Nobody will be able to earn snow for a week after someone else has earned it once during the week
Add the following test case to the test suite of Snow
Make s_earnTimer user specific by turning it into a mapping of address to uint256
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.