Function parachain_staking::pallet::dispatchables::candidate_stake_less
source · pub fn candidate_stake_less<T: Config>(
less: <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance
)
Expand description
Stake less funds for a collator candidate.
If the new amount of staked fund is not large enough, the account could be removed from the set of collator candidates and not be considered for authoring the next blocks.
This operation affects the pallet’s total stake amount.
The unstaked funds are not released immediately to the account, but
they will be available after StakeDuration
blocks.
The resulting total amount of funds staked must be within the allowed range as set in the pallet’s configuration.
Emits CollatorStakedLess
.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::candidate_stake_less
.