File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3939 <pallet_subtensor_swap:: Pallet < R > as SwapHandler >:: current_alpha_price ( netuid. into ( ) ) ;
4040 let price = current_alpha_price. saturating_mul ( U96F32 :: from_num ( 1_000_000_000 ) ) ;
4141 let price: SubstrateBalance = price. saturating_to_num :: < u64 > ( ) . into ( ) ;
42- let price_eth = <R as pallet_evm:: Config >:: BalanceConverter :: into_evm_balance ( price. into ( ) )
42+ let price_eth = <R as pallet_evm:: Config >:: BalanceConverter :: into_evm_balance ( price)
4343 . map ( |amount| amount. into_u256 ( ) )
4444 . ok_or ( ExitError :: InvalidRange ) ?;
4545
5353 pallet_subtensor:: Pallet :: < R > :: get_moving_alpha_price ( netuid. into ( ) ) ;
5454 let price = moving_alpha_price. saturating_mul ( U96F32 :: from_num ( 1_000_000_000 ) ) ;
5555 let price: SubstrateBalance = price. saturating_to_num :: < u64 > ( ) . into ( ) ;
56- let price_eth = <R as pallet_evm:: Config >:: BalanceConverter :: into_evm_balance ( price. into ( ) )
56+ let price_eth = <R as pallet_evm:: Config >:: BalanceConverter :: into_evm_balance ( price)
5757 . map ( |amount| amount. into_u256 ( ) )
5858 . ok_or ( ExitError :: InvalidRange ) ?;
5959
You can’t perform that action at this time.
0 commit comments