@@ -6,7 +6,7 @@ use frame_support::pallet_prelude::{Decode, Encode};
6
6
use substrate_fixed:: types:: I64F64 ;
7
7
use subtensor_macros:: freeze_struct;
8
8
9
- #[ freeze_struct( "bce2310daa502e48 " ) ]
9
+ #[ freeze_struct( "fa24d156067e5eb9 " ) ]
10
10
#[ derive( Decode , Encode , PartialEq , Eq , Clone , Debug ) ]
11
11
pub struct Metagraph < T : Config > {
12
12
// Subnet index
@@ -38,6 +38,7 @@ pub struct Metagraph<T: Config> {
38
38
tao_in_emission : Compact < u64 > , // amount of tao injected per block
39
39
pending_alpha_emission : Compact < u64 > , // pending alpha to be distributed
40
40
pending_root_emission : Compact < u64 > , // panding tao for root divs to be distributed
41
+ subnet_volume : Compact < u64 > , // volume of the subnet in TAO
41
42
42
43
// Hparams for epoch
43
44
rho : Compact < u16 > , // subnet rho param
@@ -141,6 +142,8 @@ impl<T: Config> Pallet<T> {
141
142
Vec < I64F64 > ,
142
143
Vec < I64F64 > ,
143
144
) = Self :: get_stake_weights_for_network ( netuid) ;
145
+
146
+ let subnet_volume = SubnetVolume :: < T > :: get ( netuid) ;
144
147
Some ( Metagraph {
145
148
// Subnet index
146
149
netuid : netuid. into ( ) , // subnet index.
@@ -177,6 +180,7 @@ impl<T: Config> Pallet<T> {
177
180
tao_in_emission : SubnetTaoInEmission :: < T > :: get ( netuid) . into ( ) , // amount of tao injected per block
178
181
pending_alpha_emission : PendingEmission :: < T > :: get ( netuid) . into ( ) , // pending alpha to be distributed
179
182
pending_root_emission : PendingRootDivs :: < T > :: get ( netuid) . into ( ) , // panding tao for root divs to be distributed
183
+ subnet_volume : subnet_volume. into ( ) ,
180
184
181
185
// Hparams for epoch
182
186
rho : Self :: get_rho ( netuid) . into ( ) , // subnet rho param
0 commit comments