The picked function checks if an unripe token has been picked by a user but failed to consider the amount of unripe tokens picked which means a user cannot pick unripe tokens if the user pick a percentage of the unripe tokens.
this line of code below disallows a user picking unripe tokens.
In the full function calling the above line, amount
is an input to allow the user to specify the amount of unrip tokens to pick. If a user decides to pick 50% of his allocation he potentially could lose the rest of the unripe token as he is unable to pick the rest of the token but could use other functions to use the rest of the unripe tokens
DOS on the picking function after first-time usage
Potential loss of funds
Foundry, Manual Review
Instead of tracking a picked user, track the amount of picked tokens against users.
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.