Users should be able to stake and mint large amounts of snow tokens if they choose
The current implementation can get very expensive leading to a DoS due to the loop size
Likelihood:
Any user that wants to mint a snowman will likely face large gas fees. 1 ETH worth of snow tokens will result in 1e18 loop iterations.
Impact:
Users will face a DoS, unable to mint a snowman NFT.
Alice calls buySnow with msg.value=1 ETH
Alice calls claimSnowman for her allowed stake of 1e18
Her tx gas price is huge and Alice cannot pay it and is unable to use the protocol.
Encode the value of each NFT in the metadata rather than having a separate NFT for each snow token staked.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.