mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 17:21:08 +00:00
Staking: store last min-active-bond on-chain (#12889)
* Staking: store last min-active-bond on-chain Storing the `min-active-bond` onchain helps the UIs with minimal on-chain costs. Closes https://github.com/paritytech/substrate/issues/12746 * Avoid relying on sorting to set the * Addresses PR comments
This commit is contained in:
@@ -295,6 +295,10 @@ pub mod pallet {
|
||||
#[pallet::storage]
|
||||
pub type MinValidatorBond<T: Config> = StorageValue<_, BalanceOf<T>, ValueQuery>;
|
||||
|
||||
/// The minimum active nominator stake of the last successful election.
|
||||
#[pallet::storage]
|
||||
pub type MinimumActiveStake<T> = StorageValue<_, BalanceOf<T>, ValueQuery>;
|
||||
|
||||
/// The minimum amount of commission that validators can set.
|
||||
///
|
||||
/// If set to `0`, no limit exists.
|
||||
|
||||
Reference in New Issue
Block a user