You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.
"remaining lock period needs to be longer then the epoch time" this condition stated in the docs is not met within the vote function
Summary
"remaining lock period needs to be longer then the epoch time" condition is not met/implemented wrong.
Vulnerability Detail
Condition not met/implemented wrong.
Impact
Allowing someone to vote for a low liquidity token with above 50 LUM then then during voting epoch when they can withdraw add liquidity to the token and getting shares to profit of the emissions. Also allows someone to double vote during the period claiming more rewards than they should get with the same eth staked.
sherlock-admin4
changed the title
Huge Syrup Orca - "remaining lock period needs to be longer then the epoch time" this condition stated in the docs is not met within the vote function
snapishere - "remaining lock period needs to be longer then the epoch time" this condition stated in the docs is not met within the vote function
Jul 29, 2024
snapishere
Medium
"remaining lock period needs to be longer then the epoch time" this condition stated in the docs is not met within the vote function
Summary
"remaining lock period needs to be longer then the epoch time" condition is not met/implemented wrong.
Vulnerability Detail
Condition not met/implemented wrong.
Impact
Allowing someone to vote for a low liquidity token with above 50 LUM then then during voting epoch when they can withdraw add liquidity to the token and getting shares to profit of the emissions. Also allows someone to double vote during the period claiming more rewards than they should get with the same eth staked.
Code Snippet
https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/Voter.sol#L175
Tool used
Manual Review
Recommendation
solidity
if (_mlumStaking._remainingLockTime(position) < _periodDuration) {
Duplicate of #166
The text was updated successfully, but these errors were encountered: