EmissionGateExponent

Storage Plain v440 → current

h, the steepness of the Hill emission gate. ITEM, U64F64. Governance-set.

Explore chain
Queried by: subnet ownersanalyticsdevelopers

The Big Picture

Together with the bar this decides how concentrated emission is across subnets. The bar says where the squeeze is centred; this says how hard it squeezes.

Use Cases

  • Model how much of its share a below-bar subnet keeps
  • Reproduce per-block subnet emission

From Chain Metadata

ITEM --> Emission Gate Exponent (h)

Purpose & Usage

Purpose

Set how sharply shares fall off below the bar: gate(s) = 1 / (1 + (θ / s)^h). Larger h approaches a hard cutoff at θ; h = 1 is a gentle taper.

Common Query Patterns

  • Single value query
  • Read the live value; the runtime default is not the live value

Notes

  • Applied in apply_emission_gate (subnet_emissions.rs L470-L511 at da06f033, v452). If every gated share underflows to zero (stale θ far above all shares with a large h), the pre-gate shares are restored so the block emission is not stranded.
  • Set with sudo_set_emission_gate_exponent (pallets/admin-utils). Present since v440.
Part of: Subnet Emission Shares

Stored Value

value (FixedU128)

Default Value

55340232221128654848 0x00000000000000000300000000000000

Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.

Decoding the value

substrate-fixed U64F64 (Q64.64), stored as u128 bits

Metadata names the type FixedU128; it is substrate_fixed U64F64. Divide bits by 2^64.

const h = Number(value as bigint) / 2 ** 64;

Code Examples

import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Query EmissionGateExponent storage (no keys - plain value)
const result = await api.query.SubtensorModule.EmissionGateExponent.getValue();
console.log("EmissionGateExponent:", result);

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Plain
First Version
v440
Current Version
v490