Function pallet_safe_mode::pallet::dispatchables::extend
source · pub fn extend<T: Config>()
Expand description
Extend the safe-mode permissionlessly for Config::ExtendDuration
blocks.
This accumulates on top of the current remaining duration.
Reserves Config::ExtendDepositAmount
from the caller’s account.
Emits an Event::Extended
event on success.
Errors with Error::Exited
if the safe-mode is entered.
Errors with Error::NotConfigured
if the deposit amount is None
.
This may be called by any signed origin with Config::ExtendDepositAmount
free
currency to reserve. This call can be disabled for all origins by configuring
Config::ExtendDepositAmount
to None
.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::extend
.