Snowman Merkle Airdrop

First Flight #42
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

Event `Snow::SnowEarned` not used on earn function

Description:
The SnowEarned event is declared in the Snow contract but is never emitted in the earnSnow function.

Impact:
Not emitting this event reduces transparency and makes it difficult for off-chain systems or users to track when Snow tokens are earned.

Recommended Mitigation:
Emit the SnowEarned event inside the earnSnow function:

function earnSnow() external canFarmSnow {
if (s_earnTimer != 0 && block.timestamp < (s_earnTimer + 1 weeks)) {
revert S__Timer();
}
_mint(msg.sender, 1);
s_earnTimer = block.timestamp;
+ emit SnowEarned(msg.sender, 1);
}
Updates

Lead Judging Commences

yeahchibyke Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.