diff --git a/pallets/subtensor/src/rpc_info/stake_info.rs b/pallets/subtensor/src/rpc_info/stake_info.rs index 631e3a167..bda619596 100644 --- a/pallets/subtensor/src/rpc_info/stake_info.rs +++ b/pallets/subtensor/src/rpc_info/stake_info.rs @@ -3,7 +3,7 @@ use frame_support::pallet_prelude::{Decode, Encode}; extern crate alloc; use codec::Compact; -#[freeze_struct("4f16c654467bc8b6")] +#[freeze_struct("5cfb3c84c3af3116")] #[derive(Decode, Encode, PartialEq, Eq, Clone, Debug, TypeInfo)] pub struct StakeInfo { hotkey: AccountId, @@ -12,6 +12,7 @@ pub struct StakeInfo { stake: Compact, locked: Compact, emission: Compact, + tao_emission: Compact, drain: Compact, is_registered: bool, } @@ -38,6 +39,7 @@ impl Pallet { continue; } let emission: u64 = AlphaDividendsPerSubnet::::get(*netuid_i, &hotkey_i); + let tao_emission: u64 = TaoDividendsPerSubnet::::get(*netuid_i, &hotkey_i); let is_registered: bool = Self::is_hotkey_registered_on_network(*netuid_i, hotkey_i); stake_info_for_coldkey.push(StakeInfo { @@ -47,6 +49,7 @@ impl Pallet { stake: alpha.into(), locked: 0.into(), emission: emission.into(), + tao_emission: tao_emission.into(), drain: 0.into(), is_registered, }); @@ -94,6 +97,7 @@ impl Pallet { netuid, ); let emission: u64 = AlphaDividendsPerSubnet::::get(netuid, &hotkey_account); + let tao_emission: u64 = TaoDividendsPerSubnet::::get(netuid, &hotkey_account); let is_registered: bool = Self::is_hotkey_registered_on_network(netuid, &hotkey_account); Some(StakeInfo { @@ -103,6 +107,7 @@ impl Pallet { stake: alpha.into(), locked: 0.into(), emission: emission.into(), + tao_emission: tao_emission.into(), drain: 0.into(), is_registered, })