BasketDeposited
Event v441 → current #116Emitted when a validator 's root dividend is deployed into its basket, minting fund shares at the pre-deposit NAV.
View events on chainThe Big Picture
This is the event that replaced the old mechanical sell. Before v441 root alpha was sold to TAO the moment it arrived, creating constant price-insensitive sell pressure. Now it is deposited into the validator's fund. Deposits price at the pre-deposit NAV, so existing holders are neither diluted nor gifted, and each deposit bears its own swap slippage.
Why This Matters
This is your yield arriving. It does not hit your balance; it grows the fund your entitlement is a fraction of. Watching deposits tells you whether the validator is actually earning.
Example Scenario
At the epoch boundary a validator earns alpha dividends across eight subnets. Those are sold once to TAO and redeployed per its weight vector. BasketDeposited fires with tao = 12.4 TAO of added realizable NAV and shares = the amount minted at the pre-deposit price.
Common Questions
- Why is tao lower than the dividend the validator earned?
- tao is the realizable NAV the deposit actually added, measured post-buy against the pre-buy snapshot. The deposit bears its own slippage and fees, so it is deliberately less than the raw TAO deployed.
- Do I need to do anything when this fires?
- No. Your entitlement grows automatically through BasketRate. Claiming is a separate choice.
- Why do small dividends not produce an event?
- Sub-threshold credits queue in PendingBasketDeposits and keep merging until they are worth a deposit, which keeps dust from ever becoming a basket holding row.
Use Cases
- Track fund inflows per validator
- Measure deposit rate and fund growth
- Reconcile epoch dividends against basket NAV
- Build validator performance leaderboards
How to Use This Event
- → Sum tao per hotkey to track lifetime fund inflow
- → Divide shares by tao to observe the share price implied at each deposit
- → Pair with BasketClaimed to compute net fund flow
From Chain Metadata
A validator's beta basket (fund) received a dividend deposit: the dividend was deployed across subnets per the validator's weight vector, adding `tao` of realizable NAV to the fund and minting `shares` fund shares at the pre-deposit NAV.
Triggers
Preconditions
- Validator hotkey holds root stake and earned a root alpha dividend this epoch
- Deposit value clears the queue threshold (dust is merged in PendingBasketDeposits until it is worth depositing)
- From v488 the batch passes a price admission check or is not deposited (SlippageTooHigh inside the flush, the credits stay queued). At v488 every holding and every priceable origin is inside the 2% fast-price band (ensure_basket_dividend_prices_stable, pallets/subtensor/src/staking/basket_flush.rs L738-L764 at b6a81d144, runtime v488). From v490 out-of-band prices are admitted while they move NAV by at most 0.1% and the incoming credits and the mint ratio by at most 2% (ensure_basket_dividend_price_impact, basket_flush.rs L875-L906, constants pallets/subtensor/src/lib.rs L224 and L228 at d967d1358, runtime v490)
- From v488 credits that stay queued after a flush made by a claim, a root stake change, a basket trade or a hotkey swap are snapshotted to the current root stakers (DeferredBasketRates). A later flush deposits them, a staker claim redeems that staker part, or a dissolution of the origin subnet closes them to cash (basket_flush.rs L204-L225 and staking/deferred_dividends.rs L51-L137 at d967d1358, runtime v490)
Effects
Postconditions
- Fund holdings increased across the destination subnets
- BasketShares increased; BasketRate advanced by minted_shares / total_root_stake
- BasketDepositedTao incremented by the realizable NAV added
- From v488, when the validator has DeferredBasketRates rows, the minted shares are allocated per origin by convert_deferred_dividend: BasketRate rises by the frozen rate of that origin x shares / alpha, so the shares accrue to the root stake recorded at the snapshot, and the row is removed (basket_flush.rs L734-L761 and staking/deferred_dividends.rs L352-L387 at d967d1358, runtime v490)
Side Effects
- Under the null strategy the dividend is credited straight into that subnet's holding with no sell and no redeploy
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | hotkey | AccountId | hotkey: Account address (32 bytes, SS58-encoded) (hex -> SS58) |
| 1 | tao | TaoBalance | tao: TAO amount in RAO (÷10⁹ for TAO) |
| 2 | shares | u64 | shares (u64) |
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 BasketDeposited events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.SubtensorModule.BasketDeposited.get(block.hash);
for (const evt of events) {
console.log("BasketDeposited:", evt.payload);
}
});On-Chain Activity
Regular feature-level activity
#38 most emitted event
As of block 9,385,000
Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 116
- First Version
- v441
- Current Version
- v490