When processing a transaction, the chance of winning may change and the user does not expect this chance.
When the player uses the searchForEgg() function, he expects one chance to win, for example, 20%. There may be a situation in which a player's transaction is awaiting processing in a mempool, and the contract owner use setEggFindThreshold() and changed the eggFindThreshold, for example, to 5% and his transaction was executed faster.
Thus, the player's function will be completed with a 5% chance, and this will be a surprise for him as he expected a 20% chance. Such situations can lead to loss of users and loss of the protocol reputation.
Manual code review
Make sure that the eggFindThreshold cannot be changed during the game. Change the setEggFindThreshold() function as follows:
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.