This storage item was removed in v450

This storage item is no longer available in the current runtime. Existed from v441 to v448. Shown here for historical reference.

DeferredRootAlphaDividends

Storage Removed Map v441 → current

Double map of root dividend credits parked while the beta-basket seed migration owned the destination maps.

Queried by: developersanalytics

The Big Picture

The v441 migration must preserve the invariant that summed owed entitlement equals BasketShares. Parking concurrent credits rather than applying them is how that invariant is held during the seed.

Why This Matters

The upgrade converts every previously accrued claimable balance into basket entitlement. Dividends landing mid-conversion cannot be applied safely, so they wait here rather than being dropped.

Example Scenario

An epoch completes while the seed is still running. Its root dividend for a hotkey is parked here and released on that subnet's first epoch after the seed finishes.

Common Questions

Should this map be empty?
Yes, once the seed has completed and released. A non-empty map outside the upgrade window is notable.

Use Cases

  • Confirm no dividends were lost across the upgrade
  • Explain BetaBasketSeedInProgress failures during the window

From Chain Metadata

Root dividend credits whose per-hotkey allocation was calculated by an epoch while the beta-basket seed migration owned the destination maps. Credits are released to the same hotkey on that subnet's first epoch after the seed completes.

Purpose & Usage

Purpose

Holds credits an epoch calculated during the seed, releasing them to the same hotkey on that subnet first epoch after the seed completes.

Common Query Patterns

  • Query during or shortly after the v441 upgrade window

Notes

  • Transient: expected to be empty once the seed has completed and released
  • Exists so snapshotted conversion cannot desync from live stake
  • Removed at v450: the seed completed everywhere, the buffer drained, and the deferral path was deleted; dividends deposit directly into basket accounting

Query Keys

#NameTypeDescription
1
key1
NetUid key1 (NetUid)
2
key2
AccountId key2 (AccountId) (hex -> SS58)

Stored Value

Value in RAO (÷10⁹ for TAO)

Default Value

0 0x0000000000000000

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

Code Examples

// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 DeferredRootAlphaDividends storage
const key1 = undefined as any /* NetUid — replace with real value */;
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.DeferredRootAlphaDividends.getValue(key1, key2);
console.log("DeferredRootAlphaDividends:", result);

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v441
Removed In
v450