referrerpolicy=no-referrer-when-downgrade

Function withdraw_unbonded

Source
pub fn withdraw_unbonded<T: Config>(_num_slashing_spans: u32)
Expand description

Remove any stake that has been fully unbonded and is ready for withdrawal.

Stake is considered fully unbonded once Config::BondingDuration has elapsed since the unbonding was initiated. In rare cases—such as when offences for the unbonded era have been reported but not yet processed—withdrawal is restricted to eras for which all offences have been processed.

The unlocked stake will be returned as free balance in the stash account.

The dispatch origin for this call must be Signed by the controller.

Emits Withdrawn.

See also Call::unbond.

§Parameters

  • num_slashing_spans: Deprecated. Retained only for backward compatibility; this parameter has no effect.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::withdraw_unbonded.