fix: remove abstain governance action votes from total stake#2922
Merged
Conversation
1d12815 to
900ed29
Compare
Contributor
|
✅ All checks succeeded |
5 similar comments
Contributor
|
✅ All checks succeeded |
Contributor
|
✅ All checks succeeded |
Contributor
|
✅ All checks succeeded |
Contributor
|
✅ All checks succeeded |
Contributor
|
✅ All checks succeeded |
900ed29 to
dd251bc
Compare
Contributor
|
✅ All checks succeeded |
2 similar comments
Contributor
|
✅ All checks succeeded |
Contributor
|
✅ All checks succeeded |
Ryun1
approved these changes
Feb 7, 2025
bosko-m
approved these changes
Feb 7, 2025
Contributor
|
@MSzalowski |
Contributor
|
@MSzalowski |
Contributor
|
@MSzalowski |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
List of changes
Which results in:

Summary of equation:
Network metrics:
Total active DRep stake: Voting power coming from all active DReps
Auto abstain: Voting power coming from pre-defined always abstain DRep
No confidence: Voting power coming from pre-defined always no-confidence DRep
List proposals:
Yes votes: Sum of Voting power coming from DReps who voted Yes (+ no confidence when Governance Action Type === No confidence)
No votes: Sum of Voting power coming from DReps who voted No (+ no confidence when Governance Action Type !== No confidence)
Abstain votes: Sum of Voting power coming from DReps who voted Abstain and Auto-abstain
IMPORTANT
As DReps who voted
Abstainbecause of making a vote action are active, these Voting powers are included in Total active stake.Equations for the
percentagesandnot votedon the frontend for the displayed votes:Not voted: Total active DRep stake - yes votes - no votes - abstain votes
Yes votes percentage: Yes votes / (Total active DRep stake - abstain votes)
No votes percentage: No votes / (Total active DRep stake - abstain votes)
Not voted percentage: 100 - Yes votes percentage - No votes percentage