Snowman Merkle Airdrop

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

Missing event emission in `earnSnow`

Root + Impact

Description

  • When calling earnSnowand event is emitted to signal it

  • There is no such event emission in the 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;
// @audit LOW - Missing emission of event
}

Risk

Likelihood:

  • It will happen always

Impact:

  • Low as the information could be gathered from the Snow contract minting event

Proof of Concept

Not necessary

--

Recommended Mitigation

function earnSnow() external canFarmSnow {
if (s_earnTimer != 0 && block.timestamp < (s_earnTimer + 1 weeks)) {
revert S__Timer();
}
// @audit LOW - Just one wei minted in this case, seems weird
_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.