Function pallet_safe_mode::pallet::dispatchables::release_deposit
source · pub fn release_deposit<T: Config>(
account: T::AccountId,
block: BlockNumberFor<T>,
)
Expand description
Permissionlessly release a deposit for an account that entered safe-mode at a given historical block.
The call can be completely disabled by setting Config::ReleaseDelay
to None
.
This cannot be called while safe-mode is entered and not until
Config::ReleaseDelay
blocks have passed since safe-mode was entered.
Emits a Event::DepositReleased
event on success.
Errors with Error::Entered
if the safe-mode is entered.
Errors with Error::CannotReleaseYet
if Config::ReleaseDelay
block have not
passed since safe-mode was entered. Errors with Error::NoDeposit
if the payee has no
reserved currency at the block specified.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::release_deposit
.