Function pallet_safe_mode::pallet::dispatchables::force_release_deposit
source · pub fn force_release_deposit<T: Config>(
account: T::AccountId,
block: BlockNumberFor<T>,
)
Expand description
Force to release a deposit for an account that entered safe-mode at a given historical block.
This can be called while safe-mode is still entered.
Emits a Event::DepositReleased
event on success.
Errors with Error::Entered
if safe-mode is entered.
Errors with Error::NoDeposit
if the payee has no reserved currency at the
specified block.
Can only be called by the Config::ForceDepositOrigin
origin.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::force_release_deposit
.