1τ/1α pool seed + depth-graduated emission price cap - #3029
Open
jamisolite wants to merge 1 commit into
Open
Conversation
…ission price cap Registration seeds new subnet pools with 1 TAO / 1 alpha (recycling the rest of the lock so registration is a real, non-recoverable cost), and caps a subnet's emission-relevant EMA price toward the network median in proportion to its pool depth (SubnetTAO), so a shallow pool cannot convert a cheaply-manipulated price into cross-subnet emission share. - subnets/subnet.rs: seed SubnetTAO=1t, SubnetAlphaIn=1a, SubnetLocked=1t; recycle excess - coinbase/subnet_emissions.rs: emission_price_capped / emission_depth_weight / get_median_moving_price; capped price feeds get_shares_price_ema - lib.rs: EmissionDepthBar (D, default 500 TAO), EmissionDepthExponent (k, default 3) - utils/misc.rs + admin-utils: root setters (call_index 103/104) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
@jamisolite is attempting to deploy a commit to the RaoFoundation Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New subnet pools now start with
1 TAO / 1 alpha. The rest of the registration lock is recycled instead of being injected into the pool.To prevent shallow pools from cheaply manipulating cross-subnet emissions, the EMA price used for emission share is capped toward the network median based on the pool's TAO depth.
Deep pools are effectively unchanged. Shallow pools cannot turn a cheaply manipulated price into outsized emission share.
Problem
Registration cost does not fall
Today, the full registration lock is injected into the new subnet's own
SubnetTAOreserve.This makes the lock a recoverable self-deposit rather than a real cost. Because the cost is recoverable, registration demand does not cool normally, causing the lock price to rise and remain elevated.
Shallow pools are cheap to manipulate
Cross-subnet emission share is based on EMA price.
The cost of moving a pool's spot price scales with its TAO reserve:
For a
1 TAOpool, the price can be moved by roughly1000×for only a few TAO.The injected registration lock previously provided pool depth and manipulation resistance. Removing it without another safeguard would reopen cheap emission-share manipulation.
Solution
Seed new pools shallow
New subnet pools are initialized with:
The remaining registration lock is recycled through the existing
recycle_taopath.This makes registration a real, non-recoverable cost while allowing the pool to start near-empty.
Cap emission-relevant price by depth
A subnet's emission-relevant price may exceed the network median only in proportion to its
SubnetTAOreserve.For shallow pools, the depth weight approaches zero, so the credited price stays near the median even if the pool price is pumped.
For deep pools, the weight approaches one, so the full EMA price is used.
Only the price used for cross-subnet TAO emission share is capped. Per-subnet alpha emission is unchanged.
Formula
For each subnet
iin the emission set:The credited price is:
The credited price replaces the raw EMA price in the existing pipeline:
All downstream behavior remains unchanged.
Parameters
DEmissionDepthBar500 TAOw = 0.5whenT = D. A value of0disables the cap.kEmissionDepthExponent31..=8.mDefault calibration