BetaBaseline
Storage Map v450 → currentMap (validator_hotkey) to the frozen display baseline splicing the fund onto the basket index.
Explore chainThe Big Picture
A raw beta price of 4.0 says the fund started from a different number, not that the manager is four times better. The baseline splices each fund onto the shared basket index at birth, the way a new mutual fund share class launches at today's NAV, so display prices are comparable across funds of any age. Since v450 the chain stamps and stores this itself rather than leaving the convention to each wallet.
Why This Matters
Every display price and every "vs index" figure derives from this stamp. Because it is written once and never rewritten, a fund display series stays continuous for its whole life.
Example Scenario
A fund mints its first share when its raw price is 1.0 and the index sits at 1.25. The baseline stores price_divisor 0.8, so the fund display price starts at 1.25, exactly on the index line.
Common Questions
- Why does a fund I can see have no baseline entry?
- It was born before on-chain stamping and has not minted a share since. It prices provisionally at the live index level until its next mint stamps it.
Use Cases
- Compute the display price and display beta the chain-defined way
- Check whether a fund is stamped or still pricing provisionally
From Chain Metadata
MAP ( validator_hotkey ) --> the fund's frozen display baseline (see [`BetaBaselineOf`]). Stamped once at the fund's first share mint (or seeded from the frozen SDK table by `migrate_stamp_beta_baselines` for funds that predate on-chain stamping) and never rewritten, so the spliced display/stake prices stay continuous for the fund's whole life. Scoped to one fund *life*: follows the fund on hotkey swap, and is retired when the last share is claimed or a dust revival starts a new life (see `retire_beta_display_state`), so an entry exists only while the fund has outstanding shares. Also absent for funds born before this storage existed that have not minted since; such funds price provisionally at the live index level until their next mint stamps them.
Purpose & Usage
Purpose
Stamped once at the fund first share mint and never rewritten: price_divisor splices the raw beta price onto the index, rate0 marks where pending-entitlement accrual starts, and tr_splice anchors the staker total-return series.
Common Query Patterns
- Query by validator hotkey when computing display price as raw price / price_divisor
- Multiply tr_splice by BasketTwr for the fund stake price
Notes
- Funds that predate on-chain stamping were seeded from the frozen SDK table by migrate_stamp_beta_baselines
- Scoped to one fund life: follows hotkey swaps, retired when the last share is claimed or a dust revival starts a new life
- Absent for pre-existing funds that have not minted since the upgrade; such funds price provisionally at the live index level until their next mint stamps them
- Both sides of the stamp division use realizable quotes bounded by pool depth, so a briefly pumped spot price cannot poison a baseline
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | validator_hotkey | AccountId [u8; 32] | validator_hotkey (AccountId, hashed key component) (hex -> SS58) |
Stored Value
the (BetaBaselineOf)
Default Value
Optional storage: querying a key that has never been written returns no value (None) — do not assume a zero default.
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 BetaBaseline storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.BetaBaseline.getValue(validator_hotkey);
console.log("BetaBaseline:", result);On-Chain Activity
Fewer than 10K writes
#286 most written storage item
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v450
- Current Version
- v490