The function enterRaffle
requires users to send an exact amount of Ether for raffle entry, potentially causing issues if users send slightly more than required.
Requiring an exact Ether amount for raffle entry may lead to DOS as the condition requires sending the exact number of Ether, calculating the exact fee is a difficult thing so if the user sends even 1 wei
more or less then the function will revert and will cause DOS every time.
This approach may result in user unable to enter in the raffle as this function will revert almost everytime
Manual Review
change the condition to as follow
and the return the dust amount to the user
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.