This repository has been archived by the owner on Jan 12, 2025. It is now read-only.
jah - a user can still receive a reward even after the lock expires #530
Labels
Non-Reward
This issue will not receive a payout
jah
High
a user can still receive a reward even after the lock expires
Summary
there is no check to force the user to lock again after the lock expired
Vulnerability Detail
the
function harvestPosition
is used to receive the reward but there is no check if the lock have expired which will lead for a user to receive a reward even after the lock have expiredImpact
a user can lock for some time and still receive rewards after the lock expired
Code Snippet
https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/MlumStaking.sol#L442
Tool used
Manual Review
Recommendation
add a check that prevent for user to receive reward after the lock expired
The text was updated successfully, but these errors were encountered: