Skip to content
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

Pools: Add MaxUnbonding to metadata #2397

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all 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
7 changes: 4 additions & 3 deletions substrate/frame/nomination-pools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,10 @@ pub mod pallet {
#[pallet::constant]
type MaxPointsToBalance: Get<u8>;

/// The maximum number of simultaneous unbonding chunks that can exist per member.
#[pallet::constant]
type MaxUnbonding: Get<u32>;

/// Infallible method for converting `Currency::Balance` to `U256`.
type BalanceToU256: Convert<BalanceOf<Self>, U256>;

Expand All @@ -1644,9 +1648,6 @@ pub mod pallet {

/// The maximum length, in bytes, that a pools metadata maybe.
type MaxMetadataLen: Get<u32>;

/// The maximum number of simultaneous unbonding chunks that can exist per member.
type MaxUnbonding: Get<u32>;
}

/// The sum of funds across all pools.
Expand Down