Skip to content

Commit

Permalink
add term to see divs
Browse files Browse the repository at this point in the history
  • Loading branch information
unconst committed Jan 7, 2025
1 parent 8e2019b commit 32b64f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pallets/subtensor/src/coinbase/run_coinbase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ impl<T: Config> Pallet<T> {
let pending_alpha_emission: I96F32 = I96F32::from_num( alpha_out_emission ).saturating_sub( root_emission_in_alpha );
// Sell root emission through the pool.
let root_emission_in_tao: u64 = Self::swap_alpha_for_tao( *netuid, root_emission_in_alpha.to_num::<u64>() );
SubnetAlphaEmissionSell::<T>::insert( *netuid, root_emission_in_alpha.to_num::<u64>() );
// Accumulate root divs for subnet.
PendingRootDivs::<T>::mutate( *netuid, |total| {
*total = total.saturating_add( root_emission_in_tao );
Expand Down
3 changes: 3 additions & 0 deletions pallets/subtensor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,9 @@ pub mod pallet {
#[pallet::storage] // --- DMAP ( netuid ) --> tao_in_emission | Returns the amount of tao emitted into this subent on the last block.
pub type SubnetTaoInEmission<T: Config> =
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_sell_per_block | Alpha sold per block.
pub type SubnetAlphaEmissionSell<T: Config> =
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
#[pallet::storage] // --- DMAP ( netuid ) --> alpha_supply_in_pool | Returns the amount of alpha in the subnet.
pub type SubnetAlphaIn<T: Config> =
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultZeroU64<T>>;
Expand Down

0 comments on commit 32b64f3

Please sign in to comment.