Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add "rebalance account" function to conviction voting pallet #10820

Closed
shawntabrizi opened this issue Feb 8, 2022 · 3 comments
Closed

Add "rebalance account" function to conviction voting pallet #10820

shawntabrizi opened this issue Feb 8, 2022 · 3 comments
Assignees
Labels
Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder Z6-mentor An easy task where a mentor is available. Please indicate in the issue who the mentor could be.

Comments

@shawntabrizi
Copy link
Member

A user can participate in votes and also participate in staking.

While staking, a user can be slashed, and thus their balance can decrease.

However, the conviction voting pallet will not know that a users balance has decreased, and will still give them voting representation of their old balance.

There should be a simple, permissionless call which allows anyone to be able to ping a user account, and the system will check their latest balance, and rebalance the users votes appropriately.

@shawntabrizi shawntabrizi added Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder Z6-mentor An easy task where a mentor is available. Please indicate in the issue who the mentor could be. labels Feb 8, 2022
@KiChjang KiChjang changed the title Add "rebalance account" function to conviciont voting pallet Add "rebalance account" function to conviction voting pallet Feb 8, 2022
@ECJ222
Copy link
Contributor

ECJ222 commented Feb 10, 2022

I will be working on this issue @shawntabrizi

@ggwpez ggwpez assigned ggwpez and ECJ222 and unassigned ggwpez Feb 10, 2022
@stanly-johnson
Copy link
Contributor

Possible duplicate of paritytech/polkadot-sdk#286

@shawntabrizi
Copy link
Member Author

haha yes, a duplicate indeed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder Z6-mentor An easy task where a mentor is available. Please indicate in the issue who the mentor could be.
Projects
None yet
Development

No branches or pull requests

4 participants