Snowman Merkle Airdrop

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

### [L-1] The ```SnowEarned``` Event is Declared But Not Emitted in ```Snow::earnSnow``` Function.

Author Revealed upon completion

[L-1] The SnowEarned Event is Declared But Not Emitted in Snow::earnSnow Function.

Description

The SnowEarned Event is Declared But Not Emitted in Snow::earnSnow Function.
this omission of event makes difficult for frontend to trace important free tokens
minting in contract

Impact:

1.Difficult to know that user has claimed their free tokens or not.

2.Accessing off-chain data becomes hard.

Recommended Mitigation

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

Lead Judging Commences

yeahchibyke Lead Judge about 16 hours ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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