FeeGlobalTao

Storage Map v290 → current

Accumulated TAO fees for distribution per subnet .

Explore chain
Queried by: developersanalytics

The Big Picture

Global fee tracking using FixedU128 for precise fee-per-liquidity calculations.

Use Cases

  • Calculate pending fees
  • Monitor fee accumulation

Purpose & Usage

Purpose

Tracks global fee accumulation for LP fee distribution.

Common Query Patterns

  • Query by netuid
Part of: Concentrated Liquidity

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

value (FixedU128)

Relationships

Modified By

Related Events

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 FeeGlobalTao storage
const key1 = 0;

const result = await api.query
  [stringCamelCase("Swap")]
  [stringCamelCase("FeeGlobalTao")](
  key1
);

console.log("FeeGlobalTao:", result.toHuman());

Runtime Info

View Source
Pallet
Swap
Storage Kind
Map
First Version
v290
Current Version
v393