Struct gekko::runtime::polkadot::extrinsics::staking::Unbond [−][src]
Expand description
Schedule a portion of the stash to be unlocked ready for transfer out after the bond
Documentation (provided by the runtime metadata)
Schedule a portion of the stash to be unlocked ready for transfer out after the bond period ends. If this leaves an amount actively bonded less than T::Currency::minimum_balance(), then it is increased to the full amount.
Once the unlock period is done, you can call withdraw_unbonded
to actually move
the funds out of management ready for transfer.
No more than a limited number of unlocking chunks (see MAX_UNLOCKING_CHUNKS
)
can co-exists at the same time. In that case, Call::withdraw_unbonded
need
to be called first to remove some of the chunks (if possible).
If a user encounters the InsufficientBond
error when calling this extrinsic,
they should call chill
first in order to free up their bonded funds.
The dispatch origin for this call must be Signed by the controller, not the stash.
And, it can be only called when EraElectionStatus
is Closed
.
Emits Unbonded
.
See also Call::withdraw_unbonded
.
- Independent of the arguments. Limited but potentially exploitable complexity.
- Contains a limited number of reads.
- Each call (requires the remainder of the bonded balance to be above
minimum_balance
) will cause a new entry to be inserted into a vector (Ledger.unlocking
) kept in storage. The only way to clean the aforementioned storage item is also user-controlled viawithdraw_unbonded
. - One DB entry.
Weight: O(1) DB Weight:
- Read: EraElectionStatus, Ledger, CurrentEra, Locks, BalanceOf Stash,
- Write: Locks, Ledger, BalanceOf Stash,
Type Disclaimer
This library makes no assumptions about parameter types and must be specified manually as generic types. Each field contains a type description which can serve as a hint on what type is being expected, as provided by the runtime meatadata. See the common
module for common types which can be used.
Fields
value: A
Type description: Compact<BalanceOf<T>>
Trait Implementations
Auto Trait Implementations
impl<A> RefUnwindSafe for Unbond<A> where
A: RefUnwindSafe,
impl<A> UnwindSafe for Unbond<A> where
A: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.