-
Notifications
You must be signed in to change notification settings - Fork 6
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 215 evaluator slashing #56
Conversation
|
||
type EvaluatorSlash: Get<Percent>; | ||
|
||
type TreasuryAccount: Get<AccountIdOf<Self>>; |
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.
The FRAME's pallet-staking
uses OnUnbalanced<NegativeImbalanceOf<Self>>
instead of Get<AccountIdOf<Self>>
(src: https://github.com/paritytech/substrate/blob/f7e81b9be4fb3f2906a3768fe74d70c8228ab553/frame/staking/src/pallet/mod.rs#L167) to send the slashed amount to the Treasury. This allows to put in the runtime configuration:
...
type TreasuryAccount = Treasury;
...
instead of:
parameter_types! {
pub TreasuryAccount: AccountId = [69u8; 32].into();
}
...
type TreasuryAccount = TreasuryAccount;
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.
Could you add that modification?
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.
Postponed since the pallet-treasury
still uses the Currency
trait. (src: https://github.com/paritytech/substrate/blob/f7e81b9be4fb3f2906a3768fe74d70c8228ab553/frame/treasury/src/lib.rs#L148). To check the viability/need/want to mix the different Traits.
No description provided.