Snowman Merkle Airdrop

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

s_error require info

reuire > or >= ?

Description

  • best to do block.timestamp <= time instead of block.timestamp <= time

  • if user call spot on time , tranzact will be revert

function earnSnow() external canFarmSnow {
i@> f (s_earnTimer != 0 && block.timestamp < (s_earnTimer + 1 weeks)) {
revert S__Timer();
}
_mint(msg.sender, 1);
s_earnTimer = block.timestamp;
}

Risk

Likelihood:

  • if user call spot on time anf s_EarnTimer != 0 , tranzact will be revert

Proof of Concept

Recommended Mitigation

- if (s_earnTimer != 0 && block.timestamp < (s_earnTimer + 1 weeks)) {
revert S__Timer();
}
+ if (s_earnTimer != 0 && block.timestamp <= (s_earnTimer + 1 weeks)) {
revert S__Timer();
}
Updates

Lead Judging Commences

ai-first-flight-judge Lead Judge about 2 hours ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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

Give us feedback!