Lack of a miminum deposit amount on deposit and receive functions means a user can enter as participant with a 0 amount. This insufficient check can allow a user to spam event host with a large number of participants.
ChristmasDinner::depositand ChristmasDinner::receive functions lack require statement to ensure amount sent is higher than zero.
Malicious user can spam event host with an infinite number of participants, making a tideous work to verify other genuine participants and make good planning for the event.
Manual review
Ensure a positive amount in deposit and receive functions
Add this line to the deposit function:
add this line to the receive 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.