Snowman Merkle Airdrop

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

Missing SnowEarned event emission in earnSnow

Description: The earnSnow function mints a token but does not emit the corresponding SnowEarned event, making it difficult to track on-chain free token claims.

Impact: The absence of event emission for free token claims creates an inconsistency in the contract's event logging pattern, as purchases emit events but free claims do not. This makes it difficult for off-chain systems to track token distribution comprehensively and complicates user activity monitoring.

Recommended Mitigation:

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 3 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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