Current Value
971718665099567868Relevant for: stakersstakersanalyticsdevelopers
The Big Picture
Bittensor uses AMM-style pools for certain operations like subnet token swaps. This constant sets the initial weight of TAO in these pools, affecting price curves. Higher weight means TAO is the dominant asset; lower weight means subnet tokens have more influence on price.
Why This Matters
If you're trading or providing liquidity, TAO weight affects slippage and price impact. High TAO weight = smaller price movements when trading subnet tokens.
Example
With TaoWeight of 80% in a TAO/SubnetToken pool, price is heavily anchored to TAO. Large subnet token trades have smaller price impact than if weights were 50/50. This provides price stability for subnet tokens.
Common Questions
- Does this affect all pools equally?
- It's an initial/default value. Individual pools may have different weights based on configuration or market forces.
- Can pool weights change over time?
- Depends on pool type. Some pools have dynamic weights; others are fixed. Check specific pool documentation.
From Chain Metadata
Initial TAO weight.
Use Cases
- Pool calculations
- Pricing
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 InitialTaoWeight constant
const value = api.consts[stringCamelCase("SubtensorModule")][stringCamelCase("InitialTaoWeight")];
console.log("InitialTaoWeight:", 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
- 0xfc62e03efa3c7c0d
Runtime Info
- Pallet
- SubtensorModule
- First Version
- v233
- Latest Version
- v233
- Current Runtime
- v393