sudo_set_owner_cut_auto_lock_enabled

Call v411 → current New #95

Configures whether owner cut on a subnet is automatically locked (building owner conviction ) or paid out liquid.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: subnet ownersanalytics

The Big Picture

When auto-lock is on (the default), the owner cut goes straight into OwnerLock and builds conviction. When off, the cut lands as liquid alpha that the owner can use or stake however they like.

Use Cases

  • Owner opts owner cut into automatic locking to maximize conviction
  • Owner switches to liquid owner cut to use the alpha elsewhere

From Chain Metadata

Set whether subnet owner cut is auto-locked for a subnet. It is only callable by root and subnet owner.

Part of: Subnet Emission Control

Input Parameters

#NameTypeDescription
0
netuid
u16 NetUidSubnet whose owner-cut auto-lock routing is being set
1
enabled
bool True (default) routes owner cut into OwnerLock (auto-locks for conviction); false pays it as liquid alpha

Permissions

Origin
Root
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Caller is root or subnet owner
  • Not callable on the root subnet

Effects

Postconditions

  • OwnerCutAutoLockEnabled[netuid] updated

Side Effects

  • OwnerCutAutoLockEnabledSet log emitted

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

// Build sudo_set_owner_cut_auto_lock_enabled call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_owner_cut_auto_lock_enabled({
  netuid,
  enabled,
});

Runtime Info

View Source
Pallet Index
19
Call Index
95
First Version
v411
Current Version
v411