-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
govstaking/src/GovernanceStaker.sol #20
base: base
Are you sure you want to change the base?
Conversation
pragma solidity ^0.8.23; | ||
|
||
import {DelegationSurrogate} from "src/DelegationSurrogate.sol"; | ||
import {DelegationSurrogateVotes} from "src/DelegationSurrogateVotes.sol"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: unused import
/// @param _depositId The identifier for the deposit that needs an updated earning power. | ||
/// @param _tipReceiver The receiver of the reward for updating a deposit's earning power. | ||
/// @param _requestedTip The amount of tip requested by the third-party. | ||
function bumpEarningPower( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If user claims complete unclaimed rewards from a deposit whose earning power is zero, bumping would not be possible from later even if delegatee becomes eligible
/// @notice Set the earning power calculator address. | ||
function setEarningPowerCalculator(address _newEarningPowerCalculator) external virtual { | ||
_revertIfNotAdmin(); | ||
_setEarningPowerCalculator(_newEarningPowerCalculator); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would probably make sense to check that no reward distribution is pending, or ensure that calculator state is initialized with same state as the previous one
govstaking/src/GovernanceStaker.sol