The mintSnowman() function emits an event inside a loop for each NFT minted. This is gas-inefficient and can lead to very high gas costs when minting large amounts of NFTs. For users claiming significant amounts, this could make the transaction prohibitively expensive or even cause it to exceed block gas limits.
Each event emission costs additional gas, and when multiplied by potentially hundreds or thousands of iterations, the total cost becomes significant.
Likelihood:
Every mint operation triggers this inefficiency
Users claiming large amounts will definitely hit this
No way to avoid this in current implementation
Impact:
High gas costs for users claiming many NFTs
Potential DOS if amount is very large (gas limit exceeded)
Poor user experience
Makes large claims economically unviable
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.