Expose NominationPools::MaxUnbonding as a pallet constant #422
Labels
I5-enhancement
An additional feature request.
I10-unconfirmed
Issue might be valid, but it's not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
Since
MaxUnbonding
is a configurable parameter, it might not always be aliased toStaking::MaxUnlockChunks
as its done in Polkadot, Kusama, and Westend runtimes. For example, Aleph Zero defines it to be different thanMaxUnlockChunks
. Exposing it as a pallet constant would allow clients to query metadata to get this bit of information to perform client-side checks to avoid users loosing tokens on commission for extrinsic known to fail in advance.Request
Expose `NominationPools::MaxUnbonding as pallet constant
Solution
Annotate
type MaxUnbonding: Get<u32>;
with#[pallet::constant]
Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: