Describe the normal behavior in one or more sentences
The `mintSnowman()` function doesn't validate that `amount > 0` before entering the loop. While calling with `amount = 0` won't cause incorrect state changes, it wastes gas and could be used for griefing.
Explain the specific issue or problem in one or more sentences
The function accepts any `uint256` value for `amount`, including zero. While the loop won't execute if `amount == 0`, the function still consumes gas for the external call and validation.
Likelihood:
* Users or contracts might accidentally call with amount = 0
* Lower likelihood as it provides no benefit
* Could be used for griefing if access control is added later
Impact:
* Unnecessary gas consumption
* Potential for griefing attacks
* Poor user experience
* Minor issue but easy to fix
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.