Skip to content

Conversation

wildmolasses
Copy link
Collaborator

Spike of IVotes interface married with Staker.

Preserves the contract's per-deposit delegation model while exposing aggregated checkpointed vote totals for each delegatee. Hopefully achieved by overriding the core staking functions (_stake, _stakeMore, _withdraw, _alterDelegatee) to update vote checkpoints whenever a delegatee's total voting power changes, but cc: @apbendi to make sure I'm not missing something

@wildmolasses wildmolasses requested a review from apbendi October 10, 2025 20:16
@github-actions
Copy link

Coverage after merging staker-votes into main will be

92.68%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   DelegationSurrogate.sol100%100%100%100%
   DelegationSurrogateVotes.sol100%100%100%100%
   Staker.sol100%100%100%100%
src/calculators
   BinaryEligibilityOracleEarningPowerCalculator.sol100%100%100%100%
   IdentityEarningPowerCalculator.sol100%100%100%100%
src/extensions
   StakerCapDeposits.sol100%100%100%100%
   StakerDelegateSurrogateVotes.sol100%100%100%100%
   StakerOnBehalf.sol100%100%100%100%
   StakerPermitAndStake.sol100%100%100%100%
   StakerVotes.sol0%0%0%0%100, 106–108, 111, 116–117, 120, 125–126, 129, 134–136, 29–30, 37, 44, 44, 44–45, 49–50, 50, 50–51, 55–56, 60, 68, 73, 76, 80–81, 81–82, 82–83, 87, 87–88, 94, 94–95
src/notifiers
   MintRewardNotifier.sol100%100%100%100%
   RewardTokenNotifierBase.sol100%100%100%100%
   TransferFromRewardNotifier.sol100%100%100%100%
   TransferRewardNotifier.sol100%100%100%100%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant