Skip to content

Owner Alpha Stake Updates#2594

Merged
sam0x17 merged 1 commit intodevnet-readyfrom
fix-owner-alpha-stake
Apr 16, 2026
Merged

Owner Alpha Stake Updates#2594
sam0x17 merged 1 commit intodevnet-readyfrom
fix-owner-alpha-stake

Conversation

@JohnReedV
Copy link
Copy Markdown
Contributor

@JohnReedV JohnReedV commented Apr 16, 2026

Summary

This PR updates subnet registration so the new subnet is initialized from a pre-registration median subnet alpha price snapshot, while the registration lock is retained in the subnet reserve instead of being mostly recycled.

Previously, subnet registration only:

  • locked the registration TAO,
  • seeded the new subnet pool with network_min_lock,
  • initialized the pool at a 1:1 reserve ratio,
  • recycled the remainder.

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

With this change:

  • the current median subnet alpha price is snapshotted before the new subnet is created,
  • the subnet TAO reserve is set to max(registration_lock, network_min_lock),
  • the subnet alpha reserve is sized from that TAO reserve at the snapshotted median price,
  • the owner receives separately minted staked alpha at that same median price,
  • and the recycled registration TAO is now normally zero.

In one line:
Registering a subnet now retains the registration lock in the subnet reserve, opens the subnet at the median subnet alpha price, and grants the owner initial staked alpha priced off that same median.


@JohnReedV JohnReedV added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Apr 16, 2026
// Size the pool alpha reserve from the total TAO reserve at that same price.
let pool_initial_tao: TaoBalance = Self::get_network_min_lock();
let pool_initial_alpha: AlphaBalance = pool_initial_tao.to_u64().into();
let total_pool_tao: TaoBalance = if actual_tao_lock_amount >= pool_initial_tao {
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.

It is much easier to understand if we set total_pool_tao, owner_alpha_tao_equivalent and tao_recycled_for_registration in the if/else statement.

@sam0x17 sam0x17 merged commit 49fd05e into devnet-ready Apr 16, 2026
202 of 212 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.

4 participants