Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Nomination Pools: add MinPointsToBalance constant #5520

Merged
merged 5 commits into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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! {
Expand Down