@@ -90,7 +90,7 @@ pub struct Metagraph<AccountId: TypeInfo + Encode + Decode> {
9090 coldkeys : Vec < AccountId > , // coldkey per UID
9191 identities : Vec < Option < ChainIdentityOfV2 > > , // coldkeys identities
9292 axons : Vec < AxonInfo > , // UID axons
93- active : Vec < bool > , // Avtive per UID
93+ active : Vec < bool > , // Active per UID
9494 validator_permit : Vec < bool > , // Val permit per UID
9595 pruning_score : Vec < Compact < u16 > > , // Pruning per UID
9696 last_update : Vec < Compact < u64 > > , // Last update per UID
@@ -141,7 +141,7 @@ pub struct SelectiveMetagraph<AccountId: TypeInfo + Encode + Decode + Clone> {
141141 alpha_in_emission : Option < Compact < AlphaCurrency > > , // amount injected outstanding per block
142142 tao_in_emission : Option < Compact < TaoCurrency > > , // amount of tao injected per block
143143 pending_alpha_emission : Option < Compact < AlphaCurrency > > , // pending alpha to be distributed
144- pending_root_emission : Option < Compact < TaoCurrency > > , // panding tao for root divs to be distributed
144+ pending_root_emission : Option < Compact < TaoCurrency > > , // pending tao for root divs to be distributed
145145 subnet_volume : Option < Compact < u128 > > , // volume of the subnet in TAO
146146 moving_price : Option < I96F32 > , // subnet moving price.
147147
@@ -190,7 +190,7 @@ pub struct SelectiveMetagraph<AccountId: TypeInfo + Encode + Decode + Clone> {
190190 coldkeys : Option < Vec < AccountId > > , // coldkey per UID
191191 identities : Option < Vec < Option < ChainIdentityOfV2 > > > , // coldkeys identities
192192 axons : Option < Vec < AxonInfo > > , // UID axons.
193- active : Option < Vec < bool > > , // Avtive per UID
193+ active : Option < Vec < bool > > , // Active per UID
194194 validator_permit : Option < Vec < bool > > , // Val permit per UID
195195 pruning_score : Option < Vec < Compact < u16 > > > , // Pruning per UID
196196 last_update : Option < Vec < Compact < u64 > > > , // Last update per UID
@@ -651,7 +651,7 @@ impl<T: Config> Pallet<T> {
651651 alpha_dividends_per_hotkey. push ( ( hotkey. clone ( ) , alpha_divs. into ( ) ) ) ;
652652 }
653653 let current_block: u64 = Pallet :: < T > :: get_current_block_as_u64 ( ) ;
654- let last_step = LastMechansimStepBlock :: < T > :: get ( netuid) ;
654+ let last_step = LastMechanismStepBlock :: < T > :: get ( netuid) ;
655655 let blocks_since_last_step: u64 = current_block. saturating_sub ( last_step) ;
656656 let ( total_stake_fl, alpha_stake_fl, tao_stake_fl) : (
657657 Vec < I64F64 > ,
@@ -683,7 +683,7 @@ impl<T: Config> Pallet<T> {
683683 // Tempo terms.
684684 block : current_block. into ( ) , // Block at call.
685685 tempo : Self :: get_tempo ( netuid) . into ( ) , // epoch tempo
686- last_step : LastMechansimStepBlock :: < T > :: get ( netuid) . into ( ) , // last epoch
686+ last_step : LastMechanismStepBlock :: < T > :: get ( netuid) . into ( ) , // last epoch
687687 blocks_since_last_step : blocks_since_last_step. into ( ) , // blocks since last epoch.
688688
689689 // Subnet emission terms
@@ -697,7 +697,7 @@ impl<T: Config> Pallet<T> {
697697 pending_alpha_emission : PendingValidatorEmission :: < T > :: get ( netuid)
698698 . saturating_add ( PendingServerEmission :: < T > :: get ( netuid) )
699699 . into ( ) , // pending alpha to be distributed
700- pending_root_emission : TaoCurrency :: from ( 0u64 ) . into ( ) , // panding tao for root divs to be distributed
700+ pending_root_emission : TaoCurrency :: from ( 0u64 ) . into ( ) , // pending tao for root divs to be distributed
701701 subnet_volume : subnet_volume. into ( ) ,
702702 moving_price : SubnetMovingPrice :: < T > :: get ( netuid) ,
703703
@@ -950,12 +950,12 @@ impl<T: Config> Pallet<T> {
950950 } ,
951951 Some ( SelectiveMetagraphIndex :: LastStep ) => SelectiveMetagraph {
952952 netuid : netuid. into ( ) ,
953- last_step : Some ( LastMechansimStepBlock :: < T > :: get ( netuid) . into ( ) ) ,
953+ last_step : Some ( LastMechanismStepBlock :: < T > :: get ( netuid) . into ( ) ) ,
954954 ..Default :: default ( )
955955 } ,
956956 Some ( SelectiveMetagraphIndex :: BlocksSinceLastStep ) => {
957957 let current_block: u64 = Pallet :: < T > :: get_current_block_as_u64 ( ) ;
958- let last_step = LastMechansimStepBlock :: < T > :: get ( netuid) ;
958+ let last_step = LastMechanismStepBlock :: < T > :: get ( netuid) ;
959959 let blocks_since_last_step: u64 = current_block. saturating_sub ( last_step) ;
960960 SelectiveMetagraph {
961961 netuid : netuid. into ( ) ,
@@ -1650,13 +1650,13 @@ fn test_selective_metagraph() {
16501650 metagraph. merge_value ( & metagraph_name, name_index) ;
16511651 assert ! ( metagraph. name. is_some( ) ) ;
16521652
1653- let alph_low_index : usize = 50 ;
1653+ let alpha_low_index : usize = 50 ;
16541654 let metagraph_alpha_low = SelectiveMetagraph :: < u32 > {
16551655 netuid : NetUid :: ROOT . into ( ) ,
16561656 alpha_low : Some ( 0_u16 . into ( ) ) ,
16571657 ..Default :: default ( )
16581658 } ;
16591659 assert ! ( metagraph. alpha_low. is_none( ) ) ;
1660- metagraph. merge_value ( & metagraph_alpha_low, alph_low_index ) ;
1660+ metagraph. merge_value ( & metagraph_alpha_low, alpha_low_index ) ;
16611661 assert ! ( metagraph. alpha_low. is_some( ) ) ;
16621662}
0 commit comments