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:
authored and GitHub committed 2022-05-17 19:21:02 +00:00
1 parent e3330164a7
commit 2fb2e8f0ea
3 files changed
+257 -302

No files matched your search

+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! {