ScrapReservoirTao

Storage Map v334 → current

TAO reservoir for fee scraps per subnet .

Explore chain
Queried by: developersanalytics

The Big Picture

Prevents fee dust from being lost to rounding.

Use Cases

  • Track accumulated scraps

From Chain Metadata

TAO reservoir for scraps of protocol claimed fees.

Purpose & Usage

Purpose

Accumulates sub-minimum fees.

Common Query Patterns

  • Query by netuid
Part of: Concentrated Liquidity

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

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

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

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

Runtime Info

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