File tree 2 files changed +2
-5
lines changed
pallets/subtensor/src/staking
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
check-devnet :
11
11
name : check devnet
12
+ if : github.base_ref != 'main'
12
13
runs-on : SubtensorCI
13
14
steps :
14
15
- name : Checkout sources
29
30
30
31
check-testnet :
31
32
name : check testnet
32
- # if: github.base_ref == 'testnet' || github.base_ref == 'devnet' || github.base_ref = = 'main'
33
+ if : github.base_ref ! = 'main'
33
34
runs-on : SubtensorCI
34
35
steps :
35
36
- name : Checkout sources
Original file line number Diff line number Diff line change @@ -68,10 +68,6 @@ impl<T: Config> Pallet<T> {
68
68
Self :: get_current_block_as_u64 ( ) . saturating_sub ( start_call_block)
69
69
} ) ;
70
70
71
- // Use halving time hyperparameter. The meaning of this parameter can be best explained under
72
- // the assumption of a constant price and SubnetMovingAlpha == 0.5: It is how many blocks it
73
- // will take in order for the distance between current EMA of price and current price to shorten
74
- // by half.
75
71
let halving_time = EMAPriceHalvingBlocks :: < T > :: get ( netuid) ;
76
72
let current_ma_unsigned = U96F32 :: saturating_from_num ( SubnetMovingAlpha :: < T > :: get ( ) ) ;
77
73
let alpha: U96F32 = current_ma_unsigned. saturating_mul ( blocks_since_start_call. safe_div (
You can’t perform that action at this time.
0 commit comments