The deposit
function in the Staking contract lacks proper validation to check if there are remaining LoveToken rewards in the staking contract vault before allowing users to deposit tokens. This vulnerability could potentially lead to users depositing tokens without the expectation of receiving rewards.
The deposit
function does not include a check to verify if there are remaining LoveToken rewards in the staking contract vault before users can deposit tokens. As a result, users can deposit tokens without being aware that no rewards are available, leading to financial losses for users who expect to receive rewards for staking their tokens.
The lack of validation in the deposit
function allows users to deposit tokens without being informed of the unavailability of LoveToken rewards. This could lead to financial losses for users who expect to receive rewards for staking their tokens but end up not receiving any rewards due to the depletion of the reward pool.
Manual code review was conducted to identify the vulnerability in the Staking contract.
Implement a validation check in the deposit
function to verify if there are remaining LoveToken rewards in the staking contract vault before allowing users to deposit tokens.
Add a requirement to ensure that users are informed if there are no more rewards available for staking, preventing them from depositing tokens without the expectation of receiving rewards.
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.