Snow::SnowEarned and Snow::FeeCollected.Description
The events Snow::SnowEarned and Snow::FeeCollected are not emitted when the corresponding actions occur. This makes it difficult to track and audit the flow of Snow tokens and fees.
Impact
The lack of event emission reduces the transparency and traceability of the contract's operations, making it harder to monitor and verify the correct functioning of the system.
Recommended mitigation
Emit the Snow::SnowEarned event in the earnSnow function and the Snow::FeeCollected event in the collectFee function to ensure that these actions are properly logged and can be tracked on-chain.
s_earnTimer = block.timestamp;
emit SnowEarned(msg.sender, 1);
}
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.