Users that want to enter the event like Ram should enter before 12th October 2024. Because after that, the selected Ram may be chosen and kill Ravana anytime. But, the enterPeopleWhoLikeRam
function do not check if Ram is selected or Ravana is killed or not. And users can enter in the event anytime after.
If users enter after Ram is selected and before Ram kill Ravana, they will not have a chance to become Ram because Ram is selected. Their money as entranceFee will be send to the organiser when Ram kill Ravana and to Ram when Ram withdraw.
If user enter after Ram kill Ravana, the entranceFee
users have to pay for entering event will stuck in contract forever because Dussehra
contract doesn't have function to send money back to these users.
Manual review
Foundry
Place this test in Dussehra.t.sol
Test pass, player 3 doesn't have a chance to become Ram and lost money.
Add checking when user enter in the event that Ram must be not selected yet.
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.