Creates a review window after safe-mode ends. Governance can assess whether activations were legitimate before deposits are released. Deposits can be slashed during this period.
Current Value
0x00Relevant for: validatorsdevelopers
The Big Picture
The delay serves two purposes: gives governance time to review, and prevents hit-and-run where someone activates safe-mode and immediately recovers their deposit.
From Chain Metadata
The minimal duration a deposit will remain reserved after safe-mode is entered or extended, unless [`Pallet::force_release_deposit`] is successfully called sooner. Every deposit is tied to a specific activation or extension, thus each deposit can be released independently after the delay for it has passed. `None` disallows permissionlessly releasing the safe-mode deposits and is a sane default.
Use Cases
- Calculate when deposits become releasable
- Plan fund recovery timing
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Query ReleaseDelay constant
const value = await api.constants.SafeMode.ReleaseDelay();
console.log("ReleaseDelay:", value);Type Information
- Type
- Option
- Byte Size
- variable bytes
- Encoding
- composite
- Raw Hex
- 0x00
Runtime Info
- Pallet
- SafeMode
- First Version
- v154
- Latest Version
- v154
- Current Runtime
- v411