Snowman Merkle Airdrop

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

No Upper Limit on 'amount' in 'buySnow()'

Description: There is no restriction on the amount parameter passed to 'buySnow()'.

Impact: Users can mint massive amounts of Snow tokens if they can pay the corresponding fee, risking inflation.

Recommended Mitigation: Add a limit:

+ uint256 constant MAX_BUY_AMOUNT = 1000;
function buySnow(uint256 amount) external payable canFarmSnow {
+ require(amount <= MAX_BUY_AMOUNT, "Amount too high");
// ...
}
Updates

Lead Judging Commences

yeahchibyke Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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