Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pallets/subtensor/src/staking/stake_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ impl<T: Config> Pallet<T> {
/// # Returns
/// * `u64` - The total alpha issuance for the specified subnet.
pub fn get_alpha_issuance(netuid: NetUid) -> AlphaCurrency {
SubnetAlphaIn::<T>::get(netuid).saturating_add(SubnetAlphaOut::<T>::get(netuid))
SubnetAlphaIn::<T>::get(netuid)
.saturating_add(SubnetAlphaOut::<T>::get(netuid))
.saturating_add(SubnetAlphaInProvided::<T>::get(netuid))
}

pub fn get_moving_alpha_price(netuid: NetUid) -> U96F32 {
Expand Down
Loading