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 was archived by the owner on Jan 12, 2025. It is now read-only.
If nobody votes for a certain pool during an voting peoriod, some bribe reward will be left in the BribeRewarder. However, there is no
sweeping mechanism in the BribeRewarder.
Vulnerability Detail
If nobody votes for a certain pool during an voting peoriod, totalDeposit at L37 is 0. So, bribe rewards for the epoch is not given to anybody.
sherlock-admin4
changed the title
Smooth Taffy Moth - BribeRewarder has no sweeping mechanism
KupiaSec - BribeRewarder has no sweeping mechanism
Jul 29, 2024
KupiaSec
High
BribeRewarder
has no sweeping mechanismSummary
If nobody votes for a certain pool during an voting peoriod, some bribe reward will be left in the
BribeRewarder
. However, there is nosweeping mechanism in the
BribeRewarder
.Vulnerability Detail
If nobody votes for a certain pool during an voting peoriod,
totalDeposit
at L37 is 0. So, bribe rewards for the epoch is not given to anybody.https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/libraries/Rewarder2.sol#L37-L39
So, the bribe rewards will be left in the
BribeRewarder
, and they will be frozen, because there is no sweeping mechanism in theBribeRewarder
.Impact
Some Bribe rewards will be frozen in the
BribeRewarder
.Code Snippet
https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/libraries/Rewarder2.sol#L37-L39
Tool used
Manual Review
Recommendation
BribeRewarder
should have an sweeping function.Duplicate of #172
The text was updated successfully, but these errors were encountered: