NotEnoughAlphaOutToRecycle

Error Re-added v257 → v315, v320 → v326, v334 → v377, v385 → current 7.89

There's not enough alpha in circulation to recycle.

Encountered by: stakersdeveloperssubnet owners

Why This Error Exists

In Dynamic TAO, alpha tokens represent stake on subnets. SubnetAlphaOut tracks alpha that has been distributed (staked) and can be recycled back. You can't recycle more alpha than exists in circulation. This prevents mathematical underflows and ensures alpha accounting stays balanced.

Deep Dive

SubnetAlphaOut(netuid) is the total alpha tokens held by stakers on that subnet. When you recycle, you're converting alpha back to TAO through the subnet's AMM pool. If recycle_amount > SubnetAlphaOut, the math would break. The pool only has as much alpha as was previously distributed.

Debugging Example

You call recycle_alpha(netuid=5, amount=1000 alpha). Error: NotEnoughAlphaOutToRecycle. Query SubnetAlphaOut(5) - returns 800 alpha. You're trying to recycle 1000 but only 800 exists. Solution: Reduce amount to <= 800. Call recycle_alpha(netuid=5, amount=800) for maximum.

Prevention Tips

  • Query SubnetAlphaOut(netuid) before recycle operations
  • Track your own alpha holdings separately - you can't recycle more than you own either
  • For large recycles, check pool liquidity to estimate slippage

From Chain Metadata

Not enough AlphaOut on the subnet to recycle

What This Means

There's not enough alpha in circulation to recycle.

Common Causes

  • Trying to recycle more than available
  • SubnetAlphaOut is too low

How to Fix

  • Check SubtensorModule.SubnetAlphaOut for available amount
  • Reduce recycle amount

Storage to Check

Thrown By

Version History

v257 block 5,228,683 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
89
Error Code
7.89
Runtime Version
v393