-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Governance: MultiChoice type Weighted #3721
Governance: MultiChoice type Weighted #3721
Conversation
8afc7d1
to
78d7cfc
Compare
The PR was updated to not mixing changes of the new |
998c652
to
cff7e77
Compare
62c7181
to
9e01a9a
Compare
9e01a9a
to
e6ced72
Compare
e25ef55
to
8dbdf93
Compare
8dbdf93
to
4f90a7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SebastianBor I adjusted the PR and verified the math as discussed.
I hope the PR would be fine for full review round.
4f90a7e
to
2a01031
Compare
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really great work overall! Just a few small things to iron out, then this will be ready to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Sebastian.Bor <sebastian_bor@hotmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Summary
Implementation of
Weighted
multi choice vote type. The implementation makes theMultiChoice
VoteType
to be of eitherApproval
type (existing behaviour) orWeighted
that makes possible to vote with percentage of the full vote weight.Backward compatibility notes
The change is not backward compatible for multi choice proposals. However the option has never been exposed in the UI and hence hasn't been used. In case there is an unknown instance of spl-gov which uses it it would only affect historical proposals which couldn't be loaded