Ensures positions have meaningful liquidity amounts.
Current Value
1000Relevant for: stakersdevelopers
The Big Picture
Prevents dust positions. Typically 1000 units minimum.
From Chain Metadata
Minimum liquidity that is safe for rounding and integer math.
Use Cases
- Validate liquidity before adding
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 MinimumLiquidity constant
const value = await api.constants.Swap.MinimumLiquidity();
console.log("MinimumLiquidity:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;Type Information
- Type
- u64
- Byte Size
- 8 bytes
- Encoding
- fixed
- Raw Hex
- 0xe803000000000000
Runtime Info
- Pallet
- Swap
- First Version
- v290
- Latest Version
- v290
- Current Runtime
- v411