FeeGlobalAlpha

Storage Map v290 → current

Accumulated Alpha fees for distribution per subnet .

Explore chain
Queried by: developersanalytics

The Big Picture

Same as FeeGlobalTao but for Alpha side of swaps.

Use Cases

  • Calculate pending Alpha fees

Purpose & Usage

Purpose

Tracks global Alpha fee accumulation.

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

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

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

Runtime Info

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