referrerpolicy=no-referrer-when-downgrade

Function poke_deposit

Source
pub fn poke_deposit<T: Config>(maybe_account: Option<AccountIdLookupOf<T>>)
Expand description

Poke deposits for recovery configurations and / or active recoveries.

This can be used by accounts to possibly lower their locked amount.

The dispatch origin for this call must be Signed.

Parameters:

  • maybe_account: Optional recoverable account for which you have an active recovery and want to adjust the deposit for the active recovery.

This function checks both recovery configuration deposit and active recovery deposits of the caller:

  • If the caller has created a recovery configuration, checks and adjusts its deposit
  • If the caller has initiated any active recoveries, and provides the account in maybe_account, checks and adjusts those deposits

If any deposit is updated, the difference will be reserved/unreserved from the caller’s account.

The transaction is made free if any deposit is updated and paid otherwise.

Emits DepositPoked if any deposit is updated. Multiple events may be emitted in case both types of deposits are updated.

§Warning: Doc-Only

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