Repository navigation
feat(nns): Added total_potential_voting_power to proposals. - #2375
Merged
daniel-wong-dfinity-org merged 1 commit intoNov 7, 2024
Merged
Conversation
daniel-wong-dfinity-org
force-pushed
the
deciding_voting_power-daniel-wong
branch
from
October 31, 2024 17:19
0dffb46 to
4b326ea
Compare
daniel-wong-dfinity-org
force-pushed
the
total_potential_voting_power-daniel-wong
branch
from
October 31, 2024 17:20
c353922 to
14a3d0a
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
total_potential_voting_power-daniel-wong
branch
from
October 31, 2024 17:30
14a3d0a to
632e7d7
Compare
daniel-wong-dfinity-org
marked this pull request as ready for review
October 31, 2024 17:56
daniel-wong-dfinity-org
force-pushed
the
total_potential_voting_power-daniel-wong
branch
from
October 31, 2024 18:02
632e7d7 to
70315b9
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
total_potential_voting_power-daniel-wong
branch
from
October 31, 2024 21:13
70315b9 to
44ec911
Compare
daniel-wong-dfinity-org
force-pushed
the
deciding_voting_power-daniel-wong
branch
from
October 31, 2024 22:41
2529333 to
a7686cd
Compare
daniel-wong-dfinity-org
force-pushed
the
total_potential_voting_power-daniel-wong
branch
from
October 31, 2024 22:42
44ec911 to
e0fba01
Compare
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Nov 5, 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
daniel-wong-dfinity-org
force-pushed
the
total_potential_voting_power-daniel-wong
branch
from
November 6, 2024 09:45
e0fba01 to
76d8d90
Compare
daniel-wong-dfinity-org
force-pushed
the
total_potential_voting_power-daniel-wong
branch
from
November 6, 2024 09:52
76d8d90 to
8936d4a
Compare
daniel-wong-dfinity-org
enabled auto-merge
November 6, 2024 09:52
max-dfinity
approved these changes
Nov 7, 2024
daniel-wong-dfinity-org
deleted the
total_potential_voting_power-daniel-wong
branch
November 7, 2024 01:42
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
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Nov 15, 2024
…voting power. (#2385) Whereas, before, we did not have a distinction between **potential** voting power vs. **deciding** voting power. When neurons refresh themselves, there is no difference between these. Whereas, when a neuron does not refresh itself recently enough, the amount of voting power in its ballots (its "deciding" voting power) is less than its potential voting power. # Example Suppose there are two neurons: * A has 100 potential voting power, and refreshed recently, and as a result, its deciding voting power is also 100. * B has 1000 potential voting power, but has not refreshed in a long time, and as a result, it's deciding voting power is just 500. Then, the total potential voting power is 1100. If both neurons vote, then A gets 100 / 1100 of the reward purse, while B gets only 500 / 1100 of the reward purse, not 1000 / 1100. You might also intuitively guess that the neurons get 100 / 600 and 500 / 600 of the reward purse, but this is (also) incorrect. The reason for this design is to keep the amount of rewards to refreshed neurons the same as before, not more. In other words, it should not be that some other neuron goes to sleep, and as a result, you get more rewards. It should only be that the sleeper neuron gets less. # References This is part of the "periodic confirmation" feature that was recently approved in proposal [132411][prop]. [prop]: https://dashboard.internetcomputer.org/proposal/132411 Closes https://dfinity.atlassian.net/browse/NNS1-3411. [👈 Previous PR][prev] | [Next PR (tangent) 👉][next] [prev]: #2375 [next]: #2470
DFINITYManu
pushed a commit
that referenced
this pull request
Nov 19, 2024
…voting power. (#2385) Whereas, before, we did not have a distinction between **potential** voting power vs. **deciding** voting power. When neurons refresh themselves, there is no difference between these. Whereas, when a neuron does not refresh itself recently enough, the amount of voting power in its ballots (its "deciding" voting power) is less than its potential voting power. # Example Suppose there are two neurons: * A has 100 potential voting power, and refreshed recently, and as a result, its deciding voting power is also 100. * B has 1000 potential voting power, but has not refreshed in a long time, and as a result, it's deciding voting power is just 500. Then, the total potential voting power is 1100. If both neurons vote, then A gets 100 / 1100 of the reward purse, while B gets only 500 / 1100 of the reward purse, not 1000 / 1100. You might also intuitively guess that the neurons get 100 / 600 and 500 / 600 of the reward purse, but this is (also) incorrect. The reason for this design is to keep the amount of rewards to refreshed neurons the same as before, not more. In other words, it should not be that some other neuron goes to sleep, and as a result, you get more rewards. It should only be that the sleeper neuron gets less. # References This is part of the "periodic confirmation" feature that was recently approved in proposal [132411][prop]. [prop]: https://dashboard.internetcomputer.org/proposal/132411 Closes https://dfinity.atlassian.net/browse/NNS1-3411. [👈 Previous PR][prev] | [Next PR (tangent) 👉][next] [prev]: #2375 [next]: #2470
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.
Background
This is part of the "periodic confirmation" feature that was recently approved in 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 | Next PR 👉