In searchForEgg() "random" is compared to "eggFindThreshold" in order to determine if a egg was found or not.
"random" has to be lower than "eggFindThreshold" in order for an egg to be found
EggFindThreshold can not take a value lower than 10(in one digit 0-9), because the value of random will always have two digits(%100)
Eggs will never be found, calling searchForEgg() will always be unsuccessful
Game will be unplayable, players will not be able to play the game
Forge Test, Remix, Manual review
Add a dev note in the declaration of eggFindThreshold
Add a new condition to guard for values below 10 in setEggFindThreshold()
Add a new check to guard for values below 10 in searchForEgg() in case the contract is deployed with a eggFindThreshold below 10
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.