Skip to content

feat(nns): Added total_potential_voting_power to proposals. - #2375

Merged
daniel-wong-dfinity-org merged 1 commit into
masterfrom
total_potential_voting_power-daniel-wong
Nov 7, 2024
Merged

daniel-wong-dfinity-org merged 1 commit into
masterfrom
total_potential_voting_power-daniel-wong

Conversation

@daniel-wong-dfinity-org

@daniel-wong-dfinity-org daniel-wong-dfinity-org commented Oct 31, 2024 •

Copy link
Copy Markdown
Contributor

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 👉

Comment thread rs/nns/governance/src/governance.rs Resolved
Comment thread rs/nns/governance/src/governance.rs Resolved
Comment thread rs/nns/governance/src/governance.rs Resolved
Comment thread rs/nns/governance/src/neuron/types.rs Resolved
@daniel-wong-dfinity-org
daniel-wong-dfinity-org marked this pull request as ready for review October 31, 2024 17:56
@daniel-wong-dfinity-org
daniel-wong-dfinity-org requested a review from a team as a code owner October 31, 2024 17:56
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the total_potential_voting_power-daniel-wong branch from 632e7d7 to 70315b9 Compare October 31, 2024 18:02
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the deciding_voting_power-daniel-wong branch from 97d1973 to 2529333 Compare October 31, 2024 21:13
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the total_potential_voting_power-daniel-wong branch from 70315b9 to 44ec911 Compare October 31, 2024 21:13
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the deciding_voting_power-daniel-wong branch from 2529333 to a7686cd Compare October 31, 2024 22:41
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the total_potential_voting_power-daniel-wong branch from 44ec911 to e0fba01 Compare October 31, 2024 22:42
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
Base automatically changed from deciding_voting_power-daniel-wong to master November 5, 2024 21:31
@daniel-wong-dfinity-org
daniel-wong-dfinity-org force-pushed the total_potential_voting_power-daniel-wong branch from e0fba01 to 76d8d90 Compare November 6, 2024 09:45
@daniel-wong-dfinity-org
daniel-wong-dfinity-org added this pull request to the merge queue Nov 7, 2024
Merged via the queue into master with commit 67e2ff4 Nov 7, 2024
@daniel-wong-dfinity-org
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants