InvalidChildkeyTake

Error v195 → v202, v205 → v212, v216 → v216, v217 → v219, v233 → v315, v320 → v326, v334 → v377, v385 → v393, v401 → current 7.71

The child key take rate is outside the allowed range.

Encountered by: validatorsdevelopers

Why This Error Exists

Child key take is the percentage of rewards that flows from the child back to the parent. Like delegate take, it has governance-enforced bounds to prevent abuse. The range ensures children retain some rewards while parents get fair compensation for delegating their authority.

Deep Dive

ChildkeyTake is stored as basis points (u16, 0-10000). MinChildkeyTake and MaxChildkeyTake define the valid range. When a child earns rewards by setting weights, a portion (the take) goes to the parent. Setting take too low means parents get nothing; too high means children have no incentive to participate.

Debugging Example

You call set_childkey_take(netuid=1, hotkey=5Parent..., child=5Child..., take=50). Error: InvalidChildkeyTake. Query MinChildkeyTake - returns 100 (1%). Your 50 (0.5%) is below minimum. Solution: Set take >= 100. Call set_childkey_take(..., take=100) for minimum allowed.

Prevention Tips

  • Query MinChildkeyTake and MaxChildkeyTake before setting take
  • Remember take is in basis points: 100 = 1%, 1000 = 10%
  • Document your child key take rates for transparency with child operators

From Chain Metadata

Childkey take is invalid.

What This Means

The child key take rate is outside the allowed range.

Common Causes

  • Take below MinChildkeyTake
  • Take above MaxChildkeyTake

How to Fix

  • Check SubtensorModule.MinChildkeyTake and MaxChildkeyTake
  • Set take within the allowed range

Storage to Check

Thrown By

Version History

v195 block 3,791,350 Added
v205 block 4,209,446 Shape modified
v216 block 4,510,996 Shape modified
v217 block 4,590,522 Shape modified
v233 block 4,920,350 Shape modified
v320 block 6,523,566 Shape modified
v334 block 6,811,690 Shape modified
v385 block 7,782,670 Shape modified
v401 block 8,036,576 Shape modified Current

Runtime Info

Pallet Index
7
Error Index
71
Error Code
7.71
Runtime Version
v411