SubnetLeaseDividendSkipped
Event v464 → current #149Emitted when a lease contributor's dividend slice could not be transferred this interval.
View events on chainThe Big Picture
From v464 a failed dividend transfer defers instead of being dropped. The slice is still allocated to the contributor and carried as debt. alpha is the whole amount owed, so it includes earlier deferred slices. Source: pallets/subtensor/src/subnets/leasing.rs (the distribution loop and settle_unpaid_lease_dividends) at v467.
Why This Matters
A skipped dividend is not a lost one. The amount is recorded against you and paid when the lease position can cover it.
Example Scenario
Lease 4 owes contributor C 12 alpha this interval but the lease position holds 10. SubnetLeaseDividendSkipped fires with alpha = 12, SubnetLeaseUnpaidDividends(4, C) = 12, and the next distribution tries to pay 12 plus the new slice.
Use Cases
- Explain a missing SubnetLeaseDividendsDistributed for one contributor
- Monitor a lease whose dividends keep deferring
How to Use This Event
- → Pair with SubnetLeaseDividendsDistributed on (lease_id, contributor) to track debt paid down
- → Alert when the same contributor is skipped at consecutive distributions
From Chain Metadata
A contributor's lease dividends could not be transferred this interval. The amount is recorded against that contributor and retried at the next distribution.
Triggers
Preconditions
- A lease dividend distribution or termination settlement attempted to pay the contributor
- The lease position held less alpha than the amount owed, or the stake transfer failed
Effects
Postconditions
- At a distribution, the owed alpha is written to SubnetLeaseUnpaidDividends for that contributor and retried at the next distribution
- At termination settlement, the unpaid row stays and the lease record is not removed until it is paid
Side Effects
- The alpha remains in the lease position; nothing leaves the chain
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 0 | lease_id | u32 LeaseId | lease_id: Lease identifier |
| 1 | contributor | AccountId | contributor: Account address (32 bytes, SS58-encoded) (hex -> SS58) |
| 2 | alpha | AlphaBalance | alpha: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
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 SubnetLeaseDividendSkipped events
client.finalizedBlock$.subscribe(async (block) => {
const events = await api.event.SubtensorModule.SubnetLeaseDividendSkipped.get(block.hash);
for (const evt of events) {
console.log("SubnetLeaseDividendSkipped:", evt.payload);
}
});Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 149
- First Version
- v464
- Current Version
- v490