Skip to content

Stake Lock as Owner Alpha on Subnet Registration#2558

Merged
sam0x17 merged 10 commits intodevnet-readyfrom
owner-alpha-on-subnet-register
Apr 2, 2026
Merged

Stake Lock as Owner Alpha on Subnet Registration#2558
sam0x17 merged 10 commits intodevnet-readyfrom
owner-alpha-on-subnet-register

Conversation

@JohnReedV
Copy link
Copy Markdown
Contributor

Summary

This PR updates subnet registration so the owner key receives initial staked alpha at registration time.

Previously, subnet registration only:

  • locked the registration TAO,
  • seeded the new subnet pool with network_min_lock,
  • recycled the remainder,
  • and set the subnet owner metadata.

The owner did not receive any initial alpha stake from the registration spend.

With this change, the owner now receives staked alpha equivalent to the TAO spent on registration, converted using the current median subnet alpha price at the time of registration.

In one line:
Registering a subnet now grants the owner initial staked alpha priced off the median subnet alpha market price.


Registration flow change

After the registration lock is taken and the subnet is initialized:

  1. the new subnet pool is still seeded using network_min_lock
  2. the current median subnet alpha price is computed from existing subnets
  3. the TAO actually spent on registration is converted into alpha using that median price
  4. that alpha is assigned as staked alpha to the subnet owner hotkey/coldkey pair

This preserves the existing subnet initialization flow while adding an owner stake position at creation time.

@JohnReedV JohnReedV added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Apr 1, 2026
@sam0x17 sam0x17 requested review from a team and gztensor April 2, 2026 16:11
actual_tao_lock_amount_less_pool_tao,
);

if owner_alpha_stake > AlphaBalance::ZERO {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can also be just !owner_alpha_stake.is_zero().

@sam0x17 sam0x17 merged commit 975036f into devnet-ready Apr 2, 2026
189 of 198 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-cargo-audit This PR fails cargo audit but needs to be merged anyway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants