This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
_requestedTip is not deduced from depositor rewards as intended #33
Labels
High
A High severity issue.
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: