If the owner sets setEggFindThreshold()
to 0, no participant can find the egg, rendering the game non-functional.
The EggHuntGame
contract has a function to set the threshold of egg finds, which limits the upper bound but not the lower bound. If the owner accidentally sets the threshold to 0, the game fails to proceed since no participant can find an egg.
If the threshold is set to 0, the game becomes non-functional as no eggs can be found by participants, regardless of the random number generated. This effectively breaks the core gameplay mechanics.
Manual review
Implement a condition to prevent the threshold from being set to 0:
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.