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
Feature/plmc 398 add treasury pallet to base runtime should like the one in #154
Feature/plmc 398 add treasury pallet to base runtime should like the one in #154
Conversation
We only fixed the tests to use the new fungible API, but didn't actually write a test where we reserve an amount, and can still vote on that right? I saw the governance tests on |
Important thing to note it that we only use reserves in specific places (deposit for treasury proposal for example) and maybe use Holds. We know that Holds and locks/freezes can overlap. Also locks and freezes can be set after reserves, only reserve cannot be used on same tokens that are already locked. However, I will try to write some more comprehensive tests for the specific vote cases in combination with holds etc. |
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.
Few minor changes needed, but overall looks fine. As soon we are aligned on the runtime config, we can merge this.
Following our offline discussion, we have agreed to proceed with merging this. |
TODO:
Adds the following pallets to base runtime:
Adds pallets to test runtime:
Important changes to custom pallets:
Democracy
free_balance
->total_balance
(allows voting with staked balance)Election phragmen
free_balance
->total_balance
(allows voting with staked balance)VotingLockPeriod
: Time users are locked for from the moment they vote.VotingLockPeriod
Other important changes
OnUnbalanced
that works together with the fungibles traits, to allow sending slashed funds in both Elections and Democracy pallet to the treasury.Treasury Config: