Skip to content

change pool liq init#1189

Merged
sam0x17 merged 5 commits intodevnet-readyfrom
feat/new-pool-init
Jan 25, 2025
Merged

change pool liq init#1189
sam0x17 merged 5 commits intodevnet-readyfrom
feat/new-pool-init

Conversation

@camfairchild
Copy link
Contributor

This changes the RAO pool initialization to use an initial subnetTAO of init_liq = min(100e9, max(1, lock)) and an initial subnetAlpha of init_liq * num_subnets

@camfairchild camfairchild requested a review from unconst as a code owner January 24, 2025 20:34
@camfairchild camfairchild added no-spec-version-bump PR does not contain changes that requires bumping the spec version skip-cargo-audit This PR fails cargo audit but needs to be merged anyway labels Jan 24, 2025
@sam0x17 sam0x17 merged commit a4c49e3 into devnet-ready Jan 25, 2025
11 of 15 checks passed
let alpha_fee =
I96F32::from_num(fee) / SubtensorModule::get_alpha_price(destination_netuid);
let expected_value = I96F32::from_num(alpha_before)
* SubtensorModule::get_alpha_price(origin_netuid)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@camfairchild do we want a saturating div here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-spec-version-bump PR does not contain changes that requires bumping the spec version 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