Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

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 #115

Closed
sherlock-admin3 opened this issue Jul 15, 2024 · 0 comments
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label High A High severity issue. Reward A payout will be made for this issue

Comments

@sherlock-admin3
Copy link
Contributor

sherlock-admin3 commented Jul 15, 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

@github-actions github-actions bot added duplicate High A High severity issue. labels Jul 21, 2024
@sherlock-admin2 sherlock-admin2 added the Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label label Jul 22, 2024
@sherlock-admin4 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
@sherlock-admin4 sherlock-admin4 added the Reward A payout will be made for this issue label Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label High A High severity issue. Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

3 participants