The Dussehra::enterPeopleWhoLikeRam
function does not have a modifier to check if Ram has been selected before allowing users to enter the event. This means that users who enter the event after Ram has been selected will never have a chance to win, even though they have paid the entrance fee.
the enterPeopleWhoLikeRam
function does not have any checks to ensure that Ram has not been selected before allowing users to enter the event. The function is defined as follows:
However, according to the documentation, once Ram has been selected, no further changes can be made to the characteristics of the participants.
They may even enter after the event has ended and their funds will be stuck in the contract since there is no way to retrieve funds outside the event.
Users who enter the event after Ram has been selected will never have a chance to win, as their characteristics cannot be updated, and they will not be eligible to become Ram. However, they will still have to pay the entrance fee, resulting in a loss of funds for these users.
Manual review
Add a modifier that checks if Ram has been selected before allowing users to enter the event.
Here's an example of how the modifier could be implemented:
Then, this modifier can be added to the enterPeopleWhoLikeRam
function:
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.