Description: There are state variable changes in some functions like EggHuntGame::setEggFindThreshold
(i.e., updating the eggFindThreshold
) but no event is emitted to reflect these changes. Emitting events when state changes occur is essential for tracking contract interactions off-chain. Events allow external services and dApps to listen for specific changes in contract state, providing better transparency and traceability.
Impact: Lack of event emission makes it harder to track the contract’s state changes, which may lead to difficulties in building frontend applications. It also reduces the ability for external indexers or monitoring systems to track important contract activities.
Recommended Mitigation: Emit events whenever state changes happen. In this case, an event can be added to notify when new egg find threshold will be set:
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.