The refund function in the ChristmasDinner contract processes refunds for participants but fails to update their participation status. As a result, users who have withdrawn their contributions are still marked as active participants (participant[msg.sender] = true), leading to inconsistent state and potential misuse.
Inaccurate Event Management: Users marked as participants might be considered part of the event even after withdrawing their funds.
manual review.
Modify the refund function to update the participant status to false after processing the refund.
Updated refund Function:
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.