-
Notifications
You must be signed in to change notification settings - Fork 41
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
Implement Global Disputes #682
Conversation
zrml/global-disputes/src/lib.rs
Outdated
debug_assert!(false); | ||
} | ||
|
||
// because of division remainders allow some dust |
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.
But you shouldn't assume that remainder <= 100
. If there are more than 100 outcome owners, this is no longer true. I would either remove the warning completely or check if remainder != reward_account_free_balance.checked_rem(&owners_len_in_balance)
. I think I'd go with the first option. While I like that you add some sanity checks, I don't think it's good style to clutter the code with lots of assumptions.
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.
👍
Fixes #654 Fixes #489
Problem
There is no implementation for voting on multiple outcomes.
Solution
https://github.com/zeitgeistpm/zeitgeist/blob/0f197fcf68e087043dc97b494924acf7cb7bd72f/zrml/global-disputes/README.md
--features with-global-disputes
on battery station to get the global disputes system working.