Repository navigation
feat(nns): Make distinction between potential and deciding voting power. - #2339
Merged
Merged
Conversation
daniel-wong-dfinity-org
changed the base branch from
master
to
linear-map-daniel-wong
October 30, 2024 16:18
daniel-wong-dfinity-org
force-pushed
the
deciding_voting_power-daniel-wong
branch
from
October 30, 2024 18:08
ccdfb66 to
ca2a563
Compare
Merged
daniel-wong-dfinity-org
marked this pull request as ready for review
October 30, 2024 21:04
daniel-wong-dfinity-org
force-pushed
the
linear-map-daniel-wong
branch
from
October 30, 2024 21:06
3a989bb to
98e5605
Compare
daniel-wong-dfinity-org
force-pushed
the
deciding_voting_power-daniel-wong
branch
4 times, most recently
from
October 31, 2024 17:19
0dffb46 to
4b326ea
Compare
daniel-wong-dfinity-org
force-pushed
the
linear-map-daniel-wong
branch
from
October 31, 2024 17:30
740b692 to
50aca63
Compare
daniel-wong-dfinity-org
force-pushed
the
deciding_voting_power-daniel-wong
branch
from
October 31, 2024 17:30
4b326ea to
3f02b4b
Compare
daniel-wong-dfinity-org
force-pushed
the
linear-map-daniel-wong
branch
from
October 31, 2024 21:12
50aca63 to
85f80ec
Compare
daniel-wong-dfinity-org
force-pushed
the
deciding_voting_power-daniel-wong
branch
from
October 31, 2024 21:13
97d1973 to
2529333
Compare
daniel-wong-dfinity-org
force-pushed
the
deciding_voting_power-daniel-wong
branch
from
October 31, 2024 22:41
2529333 to
a7686cd
Compare
aterga
approved these changes
Nov 5, 2024
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Nov 7, 2024
# Background This is part of the "periodic confirmation" feature that was recently approved in proposal [132411][prop]. [prop]: https://dashboard.internetcomputer.org/proposal/132411 # Future Work This will be used in the calculation of voting rewards. Whereas, before, the total voting power in ballots (i.e. "deciding" voting power) was used as the baseline to determine each neuron's share of the reward purse. With the distinction between potential voting power vs. deciding voting power (implemented in an earlier PR in this series), if we continued to do it the old way, the pie would be sliced into a smaller number of pieces. When this new field is used, the pie will continue to be sliced into the same number of pieces today. This way, neurons that stay refreshed will keep getting the same amount of rewards (not more), while those who do not stay refreshed will get less. # References Closes https://dfinity.atlassian.net/browse/NNS1-3411. [👈 Previous PR][prev] | [Next PR 👉][next] [prev]: #2339 [next]: #2385
alin-at-dfinity
pushed a commit
that referenced
this pull request
Nov 7, 2024
…er. (#2339) Add deciding_voting_power method to Neuron. Renames the voting_power method of Neuron to potential_voting_power. Added a flag that controls whether deciding_voting_power applies adjustment. Per usual, adjustment is off in vanilla builds, but on when feature = "test". Voting rewards uses this new method. As long as the the new behavior is not enabled (via the flag), this should result in no behavior change, and even initially, when the feature is enabled, since no neuron can be too unrefreshed, even then, there would be no immediate behavior change. # Background This is part of the "periodic confirmation" feature that was recently approved in proposal [132411][prop]. [prop]: https://dashboard.internetcomputer.org/proposal/132411 # References Closes https://dfinity.atlassian.net/browse/NNS1-3406, https://dfinity.atlassian.net/browse/NNS1-3407. [👈 Previous PR][prev] | [Next PR 👉][next] [prev]: #2338 [next]: #2375
This was referenced Feb 4, 2025
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Feb 5, 2025
#2339 All changes here are comments.
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.
Add deciding_voting_power method to Neuron.
Renames the voting_power method of Neuron to potential_voting_power.
Added a flag that controls whether deciding_voting_power applies adjustment. Per usual, adjustment is off in vanilla builds, but on when feature = "test".
Voting rewards uses this new method. As long as the the new behavior is not enabled (via the flag), this should result in no behavior change, and even initially, when the feature is enabled, since no neuron can be too unrefreshed, even then, there would be no immediate behavior change.
Background
This is part of the "periodic confirmation" feature that was recently approved in proposal 132411.
References
Closes https://dfinity.atlassian.net/browse/NNS1-3406, https://dfinity.atlassian.net/browse/NNS1-3407.
👈 Previous PR | Next PR 👉