MinimumLiquidity

Constant v290 → current u64

Ensures positions have meaningful liquidity amounts.

Current Value

1000
Relevant 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 { 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 MinimumLiquidity constant
const value = api.consts[stringCamelCase("Swap")][stringCamelCase("MinimumLiquidity")];
console.log("MinimumLiquidity:", value.toHuman());

// Convert RAO to TAO if this is a balance value
const taoValue = value.toBigInt() / BigInt(1e9);
console.log("TAO:", taoValue.toString());

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
v393