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

Mixing according to voting power rather than balance #47

Merged
merged 2 commits into from
Dec 25, 2024

Conversation

shamsasari
Copy link
Contributor

@shamsasari shamsasari commented Sep 24, 2024

The mixing algorithm now uses the voting power of the request (balance * multiplier) rather than just the balance. Each request is assigned a randomized netted voting power value, which is then converted back to a vote balance by dividing by the request's multiplier.

The mixing also now returns an Overflow error if any of the calculations overflows.

@hoco-gov hoco-gov self-requested a review December 25, 2024 09:21
@hoco-gov
Copy link
Contributor

rococo test just needs to be updated given that environment has been deprecated

@hoco-gov hoco-gov merged commit ab009f6 into projectglove:main Dec 25, 2024
1 check failed
@shamsasari shamsasari deleted the voter-power-mixing branch December 25, 2024 22:29
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