Function pallet_staking::dispatchables::withdraw_unbonded
source · pub fn withdraw_unbonded<T: Config>(num_slashing_spans: u32)
Expand description
Remove any unlocked chunks from the unlocking
queue from our management.
This essentially frees up that balance to be used by the stash account to do whatever it wants.
The dispatch origin for this call must be Signed by the controller.
Emits Withdrawn
.
See also Call::unbond
.
§Parameters
num_slashing_spans
indicates the number of metadata slashing spans to clear when this call results in a complete removal of all the data related to the stash account. In this case, thenum_slashing_spans
must be larger or equal to the number of slashing spans associated with the stash account in theSlashingSpans
storage type, otherwise the call will fail. The call weight is directly proportional tonum_slashing_spans
.
§Complexity
O(S) where S is the number of slashing spans to remove NOTE: Weight annotation is the kill scenario, we refund otherwise.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::withdraw_unbonded
.