BetaBaselineStamped

Event v450 → current #147

Emitted when a fund frozen display baseline is stamped at its first share mint.

View events on chain
Useful for: stakerswalletsanalyticsdevelopers

The Big Picture

Raw beta prices are not comparable across funds of different ages, so each fund is spliced onto the shared basket index at birth. Since v450 the chain stamps the baseline itself, from realizable quotes, instead of leaving the convention to each wallet. This event marks that one-time stamp.

Why This Matters

Before the stamp a fund prices provisionally at the live index level. After it, the baseline is frozen for the fund whole life, so every display figure you show for it chains from this block.

Example Scenario

A new validator fund receives its first dividend deposit. The mint stamps its baseline from the current index levels and BetaBaselineStamped fires with the fund hotkey.

Common Questions

Can it fire twice for the same hotkey?
Only across fund lives. The baseline is retired when the last share is claimed or a dust revival starts a new life, and the next first mint stamps a fresh one.
Why did older funds not emit it?
Funds that predate on-chain stamping were seeded from the frozen SDK table by the migrate_stamp_beta_baselines migration rather than stamped by a mint.

Use Cases

  • Detect the moment a fund graduates from provisional to stamped pricing
  • Anchor a fund display-price series at its exact starting block

How to Use This Event

  • → Watch per hotkey to begin display-price tracking for new funds
  • → Join with BetaBaseline to record the stamped values at the emission block

From Chain Metadata

A fund's frozen display baseline was stamped at its first share mint: its index-spliced display and total-return stake prices start at the current index levels from this block on (see `BetaBaseline` storage). Appended to preserve existing SCALE event indices.

Triggers

Preconditions

  • The fund mints its first beta share of this fund life, via a dividend deposit or stake_into_basket
  • A completed BetaIndexSnapshot is present to read index levels from

Effects

Postconditions

  • BetaBaseline for the hotkey holds price_divisor, rate0, and tr_splice, written once for the fund life
  • The fund display and stake prices start exactly on the index line from this block on

Side Effects

  • Display beta for stakers becomes beta times the baseline rather than the raw share count

Event Data

#NameTypeDescription
0
hotkey
AccountId hotkey: Account address (32 bytes, SS58-encoded) (hex -> SS58)

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);

// Subscribe to BetaBaselineStamped events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BetaBaselineStamped.get(block.hash);
  for (const evt of events) {
    console.log("BetaBaselineStamped:", evt.payload);
  }
});

On-Chain Activity

Emission Frequency
●○○○○○ Rare <10K emissions

Infrequent or specialized

#168 most emitted event

As of block 9,385,000

Runtime Info

View Source
Pallet Index
7
Event Index
147
First Version
v450
Current Version
v490