The setEggFindThreshold function allows the contract owner to change the eggFindThreshold state variable, which dictates the probability of finding an egg. However, this function does not emit an event upon successful execution.
State-changing functions, especially those modifying critical parameters like the chance to find an egg, should emit events. This allows off-chain monitoring tools, user interfaces, and other interested parties to track changes in the contract's state without having to constantly poll the contract's storage. The setEggFindThreshold function updates the eggFindThreshold variable but lacks an accompanying event emission.
The absence of an event makes it difficult for external systems and users to track changes to the egg finding probability. This lack of transparency can lead to confusion for players or issues for applications relying on this parameter, as they might operate based on outdated information.
Manual Review
Emit an event within the setEggFindThreshold function to signal the change in the threshold.
Define a new event, for example:
Emit this event within the setEggFindThreshold function after the update:
Standard practice for clarifying important contract behaviors
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.