Ensures pools maintain minimum depth.
Current Value
0x40420f0000000000Relevant for: subnet ownersdevelopers
The Big Picture
Pools can't be drained below this amount, ensuring basic swap functionality.
From Chain Metadata
Minimum reserve for tao and alpha
Use Cases
- Understand pool requirements
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Query MinimumReserve constant
const value = api.consts[stringCamelCase("Swap")][stringCamelCase("MinimumReserve")];
console.log("MinimumReserve:", value.toHuman());Type Information
- Type
- NonZeroU64
- Byte Size
- variable bytes
- Encoding
- composite
- Raw Hex
- 0x40420f0000000000
Runtime Info
- Pallet
- Swap
- First Version
- v290
- Latest Version
- v290
- Current Runtime
- v393