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
GovernanceStaker introduces the concept of bumping earning power to control the amount of rewards claimable by depositors who delegate to inactive delegatees.
The bumpEarningPower function enables keepers to update earningPower on behalf of depositors, and take a fee to do so.
if (_newEarningPower > deposit.earningPower && _unclaimedRewards < _requestedTip) {
revertGovernanceStaker__InsufficientUnclaimedRewards();
}
// Note: underflow causes a revert if the requested tip is more than unclaimed rewardsif (_newEarningPower < deposit.earningPower && (_unclaimedRewards - _requestedTip) < maxBumpTip)
{
revertGovernanceStaker__InsufficientUnclaimedRewards();
}
Unfortunately, the requested tip is never deducted from the depositor rewards. Which means that the accounting is incorrect, and some legitimate participants would not be able to claim their rewards.
Impact
Rewards are denied to legitimate participants (rewards insolvency)
Recommendation
Consider subtracting the tip from the depositor rewards:
Description
GovernanceStaker
introduces the concept of bumping earning power to control the amount of rewards claimable by depositors who delegate to inactive delegatees.The
bumpEarningPower
function enables keepers to update earningPower on behalf of depositors, and take a fee to do so.GovernanceStaker.sol#L508:
Some checks are done to ensure that depositor has enough rewards so that the
_requestedTip
can be covered out of the rewards.GovernanceStaker.sol#L489-L497:
Unfortunately, the requested tip is never deducted from the depositor rewards. Which means that the accounting is incorrect, and some legitimate participants would not be able to claim their rewards.
Impact
Rewards are denied to legitimate participants (rewards insolvency)
Recommendation
Consider subtracting the tip from the depositor rewards:
GovernanceStaker.sol#L508:
The text was updated successfully, but these errors were encountered: