@@ -3,7 +3,7 @@ use frame_support::pallet_prelude::{Decode, Encode};
3
3
extern crate alloc;
4
4
use codec:: Compact ;
5
5
6
- #[ freeze_struct( "4f16c654467bc8b6 " ) ]
6
+ #[ freeze_struct( "5cfb3c84c3af3116 " ) ]
7
7
#[ derive( Decode , Encode , PartialEq , Eq , Clone , Debug , TypeInfo ) ]
8
8
pub struct StakeInfo < AccountId : TypeInfo + Encode + Decode > {
9
9
hotkey : AccountId ,
@@ -12,6 +12,7 @@ pub struct StakeInfo<AccountId: TypeInfo + Encode + Decode> {
12
12
stake : Compact < u64 > ,
13
13
locked : Compact < u64 > ,
14
14
emission : Compact < u64 > ,
15
+ tao_emission : Compact < u64 > ,
15
16
drain : Compact < u64 > ,
16
17
is_registered : bool ,
17
18
}
@@ -38,6 +39,7 @@ impl<T: Config> Pallet<T> {
38
39
continue ;
39
40
}
40
41
let emission: u64 = AlphaDividendsPerSubnet :: < T > :: get ( * netuid_i, & hotkey_i) ;
42
+ let tao_emission: u64 = TaoDividendsPerSubnet :: < T > :: get ( * netuid_i, & hotkey_i) ;
41
43
let is_registered: bool =
42
44
Self :: is_hotkey_registered_on_network ( * netuid_i, hotkey_i) ;
43
45
stake_info_for_coldkey. push ( StakeInfo {
@@ -47,6 +49,7 @@ impl<T: Config> Pallet<T> {
47
49
stake : alpha. into ( ) ,
48
50
locked : 0 . into ( ) ,
49
51
emission : emission. into ( ) ,
52
+ tao_emission : tao_emission. into ( ) ,
50
53
drain : 0 . into ( ) ,
51
54
is_registered,
52
55
} ) ;
@@ -94,6 +97,7 @@ impl<T: Config> Pallet<T> {
94
97
netuid,
95
98
) ;
96
99
let emission: u64 = AlphaDividendsPerSubnet :: < T > :: get ( netuid, & hotkey_account) ;
100
+ let tao_emission: u64 = TaoDividendsPerSubnet :: < T > :: get ( netuid, & hotkey_account) ;
97
101
let is_registered: bool = Self :: is_hotkey_registered_on_network ( netuid, & hotkey_account) ;
98
102
99
103
Some ( StakeInfo {
@@ -103,6 +107,7 @@ impl<T: Config> Pallet<T> {
103
107
stake : alpha. into ( ) ,
104
108
locked : 0 . into ( ) ,
105
109
emission : emission. into ( ) ,
110
+ tao_emission : tao_emission. into ( ) ,
106
111
drain : 0 . into ( ) ,
107
112
is_registered,
108
113
} )
0 commit comments