This project requires an entrance fee to enter a raffle game. However, the constructor did not validate that the
entrance fee is a non-zero amount.
In the absence of a check for zero value, users may set the entrance fee to zero, which can lead to unforeseen issues in
the raffle game mechanics, potentially allowing users to enter without contributing to the prize pool.
The lack of a zero check on the entrance fee could result in exploitation where users enter the raffle without paying
the fee, undermining the fairness and profitability of the game.
Manual review
To prevent this issue, the following check should be added to the constructor to ensure that the entrance fee cannot be
set to zero:
Alternatively, establish a rule that defines a minimum amount for the entranceFee to further safeguard against
underpricing.
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.