The Staking::deposit
function allows users to stake a large amount of tokens without verifying whether the stakingVault
has sufficient tokens to cover the rewards for all staked tokens. This could lead to a situation where users are unable to claim their rewards if the stakingVault
balance falls short.
The lack of a check in the deposit function to prevent over-staking when the stakingVault
balance is insufficient could result in users not receiving their expected rewards.
Manual review.
Implement additional checks or mechanisms in the deposit
function to ensure that the stakingVault
has enough tokens to cover the rewards for all staked tokens.
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.