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

Deprecate voting power #6058

Merged
merged 16 commits into from
Dec 23, 2024
Merged

Deprecate voting power #6058

merged 16 commits into from
Dec 23, 2024

Conversation

mstrasinskis
Copy link
Contributor

@mstrasinskis mstrasinskis commented Dec 20, 2024

Motivation

New fields representing the voting power of a neuron have recently been introduced to the governance canister (https://github.com/dfinity/ic/blob/release-2024-12-06_03-16-base/rs/nns/governance/canister/governance.did#L741-L743), and the original votingPower field has been marked as deprecated. With this PR, votingPower is replaced by decidedVotingPower, which more accurately reflects the current voting power state of a neuron.

Note: The new fields are marked as optional to maintain backward compatibility of the type, but they are expected to always be provided.

Changes

  • Replace NeuronInfo.votingPower with NeuronInfo.decidingVotingPower.

Tests

  • Updated.

Todos

  • Add entry to changelog (if necessary).
    Not necessary.

@mstrasinskis mstrasinskis marked this pull request as ready for review December 20, 2024 13:02
@mstrasinskis mstrasinskis requested a review from a team as a code owner December 20, 2024 13:02
Copy link
Contributor

@yhabib yhabib left a comment

Choose a reason for hiding this comment

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

looks good, just some minor comments

@mstrasinskis mstrasinskis requested a review from yhabib December 20, 2024 14:10
Copy link
Contributor

@yhabib yhabib left a comment

Choose a reason for hiding this comment

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

some minor things

@mstrasinskis mstrasinskis added this pull request to the merge queue Dec 23, 2024
Merged via the queue into main with commit b3ce731 Dec 23, 2024
31 checks passed
@mstrasinskis mstrasinskis deleted the deprecate-voting-power branch December 23, 2024 09:25
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