Skip to content

Conversation

@shamil-gadelshin
Copy link
Collaborator

Description

This PR adds RootProp storage map:

    /// --- MAP ( netuid ) --> root_prop | The subnet root proportion.
    #[pallet::storage]
    pub type RootProp<T: Config> =
        StorageMap<_, Identity, NetUid, U96F32, ValueQuery, DefaultRootProp<T>>;

This map is repopulated in each block using a new function root_proportion(subnet) after emissions.
The PR also contains tests that verify map processing and a root proportion formula.
run_coinbase.rs was refactored to use the new function root_proportion.

@shamil-gadelshin shamil-gadelshin added skip-cargo-audit This PR fails cargo audit but needs to be merged anyway apply-benchmark-patch labels Dec 11, 2025
@shamil-gadelshin shamil-gadelshin merged commit 064a074 into devnet-ready Dec 15, 2025
4 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