Users should be able to choose how many tokens they want to stake
The current claimSnowman implementation uses the entire balance of their snow tokens. Moreover, if their balance doesn't match exactly how many they should claim in the merkle proof, the tx will revert.
Likelihood:
For users in the protocol, it is likely that they don't have exactly the specific amount of tokens as in their merkle proof
Impact:
DoS if amount is even slightly off
Alice buys 100 snow tokens but airdrop merkle tree only assigns her 50 snow tokens
Alice is unable to stake her tokens as she has excess tokens, causing in a revert in every claimSnowman tx
Add a parameter in the claimSnowman function allowing users to specifiy amount of tokens they will stake.
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.