Skip to content
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

Add more documentation #90

Merged
merged 4 commits into from
Dec 13, 2024
Merged

Add more documentation #90

merged 4 commits into from
Dec 13, 2024

Conversation

alexkeating
Copy link
Collaborator

@alexkeating alexkeating commented Dec 13, 2024

Description

  • Add documentation about uint96 earning power for deposit
  • Add documentation for frequent earning power changes in the earning power calculator

@alexkeating alexkeating marked this pull request as ready for review December 13, 2024 16:14
/// @dev An earning power calculator should take into account that a deposit's earning power is an
/// uint96. There may be overflow issues within governance staker if this is not taken into
/// account. Also, there should be some mechanism to prevent the deposit from frequently being
/// bumpable if earning power changes frequently as this will eat into a users unclaimed rewards.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// bumpable if earning power changes frequently as this will eat into a users unclaimed rewards.
/// bumpable: if earning power changes frequently, this will eat into a users unclaimed rewards.

Copy link

Coverage after merging fix/add-more-documentation into main will be

98.06%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   BinaryEligibilityOracleEarningPowerCalculator.sol100%100%100%100%
   DelegationSurrogate.sol100%100%100%100%
   DelegationSurrogateVotes.sol100%100%100%100%
   GovernanceStaker.sol98.47%100%97.22%98.57%260–262
src/extensions
   GovernanceStakerDelegateSurrogateVotes.sol87.50%50%100%90.91%25–26
   GovernanceStakerOnBehalf.sol100%100%100%100%
   GovernanceStakerPermitAndStake.sol76.47%0%100%76.92%19–20, 48, 76

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.

2 participants