NetworkLockCostReductionIntervalSet

Event Re-added v134 → v135, v136 → v141, v142 → v148, v149 → v165, v195 → v219, v233 → v247, v252 → v265, v273 → v277, v290 → v315, v320 → v326, v334 → v367, v372 → current #61

Emitted when lock cost reduction interval is changed.

View events on chain
Useful for: subnet ownersdevelopersanalytics

The Big Picture

After high-demand periods, subnet lock costs should decrease toward the minimum. This interval controls how quickly that happens. Shorter intervals mean faster cost reduction (quicker return to baseline). Longer intervals mean costs stay elevated longer after demand spikes.

Why This Matters

If lock costs spiked due to high demand, understanding the reduction interval helps you decide whether to wait or act now. Faster reduction means cheaper costs soon. Slower reduction means waiting may not help much - costs stay elevated longer.

Example Scenario

Lock cost reduction was happening every 1000 blocks. To smooth out cost volatility, they increase the interval to 5000 blocks. NetworkLockCostReductionIntervalSet fires. Now lock costs decrease more slowly after spikes - less volatile but costs stay higher longer.

Common Questions

How much does cost reduce per interval?
Depends on the reduction algorithm. Check the specific reduction step parameter. The interval is WHEN it happens; the step is HOW MUCH.
Can I predict when costs will reach minimum?
Roughly. Track current cost, reduction interval, and reduction step. Extrapolate when cost will hit NetworkMinLockCost. But new demand can spike costs again.
What if demand stays high?
Costs stay elevated. Reduction happens when demand drops. If demand remains high, costs won't decrease even with intervals passing.

Use Cases

  • Track lock cost reduction dynamics
  • Plan optimal timing for subnet creation
  • Monitor network economic tuning
  • Build cost prediction tools

How to Use This Event

  • Track reduction interval for cost timing optimization
  • Monitor economic policy changes
  • Build cost decay prediction models

From Chain Metadata

the lock cost reduction is set

Triggers

Effects

Postconditions

  • NetworkLockReductionInterval updated

Side Effects

  • Affects how quickly lock costs decrease

Event Data

#NameTypeDescription
0
arg0
u64 Event field #0 (u64)

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Subscribe to NetworkLockCostReductionIntervalSet events
api.query.system.events((events) => {
  events
    .filter(({ event }) =>
      event.section === stringCamelCase("SubtensorModule") &&
      event.method === "NetworkLockCostReductionIntervalSet"
    )
    .forEach(({ event }) => {
      console.log("NetworkLockCostReductionIntervalSet:", event.data.toHuman());
    });
});

Version History

v134 block 1,455,498 1 args
v136 block 1,756,781 1 args
v142 block 2,543,779 1 args
v149 block 3,014,339 1 args
v195 block 3,791,350 1 args
v233 block 4,920,350 1 args
v252 block 5,163,656 1 args
v273 block 5,659,032 1 args
v290 block 5,947,548 1 args
v320 block 6,523,566 1 args
v334 block 6,811,690 1 args
v372 block 7,430,358 1 args Current

Runtime Info

View Source
Pallet Index
7
Event Index
61
First Version
v134
Current Version
v393