Nomination Pools: add MinPointsToBalance constant (#5520)

* add MinPointsToBalance

* Typo

* cargo update -p sp-io

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
Ross Bulat
2022-05-17 20:21:02 +01:00
committed by GitHub
parent e3330164a7
commit 2fb2e8f0ea
3 changed files with 257 additions and 302 deletions
+253 -302
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -1437,6 +1437,7 @@ impl sp_runtime::traits::Convert<sp_core::U256, Balance> for U256ToBalance {
parameter_types! {
pub const PoolsPalletId: PalletId = PalletId(*b"py/nopls");
pub const MinPointsToBalance: u32 = 10;
}
impl pallet_nomination_pools::Config for Runtime {
@@ -1451,6 +1452,7 @@ impl pallet_nomination_pools::Config for Runtime {
// we use the same number of allowed unlocking chunks as with staking.
type MaxUnbonding = <Self as pallet_staking::Config>::MaxUnlockingChunks;
type PalletId = PoolsPalletId;
type MinPointsToBalance = MinPointsToBalance;
}
pub struct InitiatePoolConfigs;
+2
View File
@@ -1020,6 +1020,7 @@ impl sp_runtime::traits::Convert<sp_core::U256, Balance> for U256ToBalance {
parameter_types! {
pub const PoolsPalletId: PalletId = PalletId(*b"py/nopls");
pub const MinPointsToBalance: u32 = 10;
}
impl pallet_nomination_pools::Config for Runtime {
@@ -1034,6 +1035,7 @@ impl pallet_nomination_pools::Config for Runtime {
// we use the same number of allowed unlocking chunks as with staking.
type MaxUnbonding = <Self as pallet_staking::Config>::MaxUnlockingChunks;
type PalletId = PoolsPalletId;
type MinPointsToBalance = MinPointsToBalance;
}
construct_runtime! {