Dussehra::enterPeopleWhoLikeRam
is missing a time gate and, hence, can be (successfully) called even after the Dussehra event has ended.
Ideally, users are not supposed to be able to call Dussehra::enterPeopleWhoLikeRam
after Ram has been selected.
Dussehra::enterPeopleWhoLikeRam
is supposed to enable users to enter the Dussehra event by paying the neccessary entrance fee. In exchange, they get the following:
a Ram NFT,
a chance to increase the value of their NFT,
a chance to become Ram for the event and as such, win 50% of the prize pool.
However, Dussehra::enterPeopleWhoLikeRam
is not time-gated and, hence, users can call it even after the event.
This is demonstarted by the following test:
Users who call this function after Ram has been selected but before 12th October 2024 will get only 2 from the 3 benefits players normally get. They will not get the chance to become Ram for the event.
Users who call this function after 12th October 2024 will get only 1 from the 3 benefits players normally get. They will not get the chance to become Ram for the event, neither can they increase the value of their NFT.
Manual review, Foundry.
For fairness, ensure users cannot call Dussehra::enterPeopleWhoLikeRam
after Ram has been selected. Modify Dussehra
as follows:
It is the user's responsibility to check the date of the event.
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.