Two events are declared in the Snow
contract but are never emitted with any function.
This results in dead code and may indicate incomplete implementation or missing logging of important on-chain actions.
Events are critical for off-chain observability, enabling users, frontends, indexers and debuggers to track contract behavior.
Omitting event emissions can hinder transparency and make it harder to trace key operations such as earnings and fee collections.
The unused events are:
Snow::event SnowEarned(address indexed earner, uint256 indexed amount);
Snow::event FeeCollected();
Likelihood: Low
Impact: Low
While this issue does not pose on immediate threat to the security of the contract, it does reduce visibility into important user and system actions, which may lead to operational challenges or poor developer/integrator experience.
** SnowEarned not emitted in earnSnow
: **
** FeeCollected not emitted in collectFee
**
Emit the declared events at the appropriate points in their respective functions to provide transparency for off-chain consumers:
If these events are no longer necessary, remove their declarations to reduce code bloat and maintain clarity.
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.