mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 01:01:04 +00:00
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:
Generated
+253
-302
File diff suppressed because it is too large
Load Diff
@@ -1437,6 +1437,7 @@ impl sp_runtime::traits::Convert<sp_core::U256, Balance> for U256ToBalance {
|
|||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const PoolsPalletId: PalletId = PalletId(*b"py/nopls");
|
pub const PoolsPalletId: PalletId = PalletId(*b"py/nopls");
|
||||||
|
pub const MinPointsToBalance: u32 = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_nomination_pools::Config for Runtime {
|
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.
|
// we use the same number of allowed unlocking chunks as with staking.
|
||||||
type MaxUnbonding = <Self as pallet_staking::Config>::MaxUnlockingChunks;
|
type MaxUnbonding = <Self as pallet_staking::Config>::MaxUnlockingChunks;
|
||||||
type PalletId = PoolsPalletId;
|
type PalletId = PoolsPalletId;
|
||||||
|
type MinPointsToBalance = MinPointsToBalance;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct InitiatePoolConfigs;
|
pub struct InitiatePoolConfigs;
|
||||||
|
|||||||
@@ -1020,6 +1020,7 @@ impl sp_runtime::traits::Convert<sp_core::U256, Balance> for U256ToBalance {
|
|||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const PoolsPalletId: PalletId = PalletId(*b"py/nopls");
|
pub const PoolsPalletId: PalletId = PalletId(*b"py/nopls");
|
||||||
|
pub const MinPointsToBalance: u32 = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_nomination_pools::Config for Runtime {
|
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.
|
// we use the same number of allowed unlocking chunks as with staking.
|
||||||
type MaxUnbonding = <Self as pallet_staking::Config>::MaxUnlockingChunks;
|
type MaxUnbonding = <Self as pallet_staking::Config>::MaxUnlockingChunks;
|
||||||
type PalletId = PoolsPalletId;
|
type PalletId = PoolsPalletId;
|
||||||
|
type MinPointsToBalance = MinPointsToBalance;
|
||||||
}
|
}
|
||||||
|
|
||||||
construct_runtime! {
|
construct_runtime! {
|
||||||
|
|||||||
Reference in New Issue
Block a user