InvalidChildkeyTake

Error Re-added v195 → v202, v205 → v212, v216 → v216, v217 → v219, v233 → v315, v320 → v326, v334 → v377, v385 → current 7.70

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 Re-added
v216 block 4,510,996 Re-added
v217 block 4,590,522 Re-added
v233 block 4,920,350 Re-added
v320 block 6,523,566 Re-added
v334 block 6,811,690 Re-added
v385 block 7,782,670 Re-added Current

Runtime Info

Pallet Index
7
Error Index
70
Error Code
7.70
Runtime Version
v393