Description: Users are allowed to claim rewrds for staking their LoveToken. Those rewards tokens are hold by the
StakingVault contract and reward are transfered from the StakingVault contract. The issue start from that the StakingVault contract hold a specific amount of LoveToken. We Can see that from the LoveToken::iniiVault().
It is clear that Staking contracts mints 5000000000 tokens. Which is limited amount and it can ended one day. After it become zero it will be unable to send reward token to the user which will be potential time loss for the users.
Impact: Users will be unable to receive rewards and it will also be a time loss for the users to stake their token for nothing.
Proof of Concept: Below a Proof of code is given with the minting of 100 token to StakingValut
Recommended Mitigation: There are few steps can be taken to mitigate this issue
Ensuring Continous Supply Of LoveToken To The StakingVault.
Use A Checks Before Transfering Rewards To The From Staking::claimRewards() By adding The Below Lines Of Code
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.