Operational Logic error leading to draining of funds
Description:
If a user deposits 1 LoveToken
in the Staking pool in week one without withdrawing, and deposits 10 LoveToken
in week 6 and then claimRewards
, the piece of code below will give him the rewards for the total 11 LoveToken
during the six weeks period and not only 6 LoveToken
for the first deposit.
Impact:
A malicious user could accumulate a considerable amount of LoveToken
, deposit, and withdraw in a small period of time multiplying the real rewards available for his address.
Proof of Code:
Recommendation:
High severity, this allows users to claim additional rewards without committing to intended weekly staking period via multi-deposit/deposit right before claiming 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.