refund() function enables a participant to get their tokens back while still being registered for the party. The result is they are able to illegitimately attend the party for free. The function should instead unregister the caller of the function from the party during the refund process.
A user can deposit(), become a participant, and then call refund without being unregistered from the party.
Manual Review
Refactor refund() function. Change the value of the participant mapping to false when a participant calls refund. See below:
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.