@@ -32,7 +32,7 @@ fn xcm_message_withdraw_deposit(token_location: Location, amount: Balance) -> Xc
3232 Xcm ( vec ! [
3333 WithdrawAsset ( asset. clone( ) . into( ) ) ,
3434 BuyExecution {
35- fees: asset. into ( ) ,
35+ fees: asset,
3636 weight_limit: Unlimited ,
3737 } ,
3838 DepositReserveAsset {
@@ -54,7 +54,7 @@ fn set_dot_external_and_get_transfer_call() -> hydradx_runtime::RuntimeCall {
5454
5555 let dot: Asset = Asset {
5656 id : cumulus_primitives_core:: AssetId ( DOT_ASSET_LOCATION . into ( ) ) ,
57- fun : Fungible ( 1 * UNITS ) ,
57+ fun : Fungible ( UNITS ) ,
5858 } ;
5959
6060 let bob_beneficiary = Location :: new (
@@ -195,7 +195,7 @@ fn xtokens_transfer_should_fail_when_lockdown_active_and_asset_is_egress() {
195195
196196 let call = RuntimeCall :: XTokens ( orml_xtokens:: Call :: transfer {
197197 currency_id : HDX ,
198- amount : 1 * UNITS ,
198+ amount : UNITS ,
199199 dest : Box :: new ( bob_location. into_versioned ( ) ) ,
200200 dest_weight_limit : WeightLimit :: Unlimited ,
201201 } ) ;
@@ -238,7 +238,7 @@ fn on_charge_transaction_skips_global_withdraw_accounting_for_native_asset() {
238238 let call = RuntimeCall :: System ( frame_system:: Call :: remark { remark : vec ! [ 1 , 2 , 3 ] } ) ;
239239
240240 // Act
241- let fee_amount = 1 * UNITS ;
241+ let fee_amount = UNITS ;
242242 let _ = <hydradx_runtime:: Runtime as pallet_transaction_payment:: Config >:: OnChargeTransaction :: withdraw_fee (
243243 & alice,
244244 & call,
@@ -264,7 +264,7 @@ fn on_charge_transaction_skips_global_withdraw_accounting_for_native_asset() {
264264 Currencies :: withdraw(
265265 HDX ,
266266 & BOB . into( ) ,
267- 1 * UNITS ,
267+ UNITS ,
268268 frame_support:: traits:: ExistenceRequirement :: AllowDeath
269269 ) ,
270270 pallet_circuit_breaker:: Error :: <hydradx_runtime:: Runtime >:: WithdrawLockdownActive
@@ -311,7 +311,7 @@ fn on_charge_transaction_skips_global_withdraw_accounting_for_external_asset() {
311311 let call = RuntimeCall :: System ( frame_system:: Call :: remark { remark : vec ! [ 1 , 2 , 3 ] } ) ;
312312
313313 // Act
314- let fee_amount = 1 * UNITS ;
314+ let fee_amount = UNITS ;
315315 let _ = <hydradx_runtime:: Runtime as pallet_transaction_payment:: Config >:: OnChargeTransaction :: withdraw_fee (
316316 & alice,
317317 & call,
@@ -337,7 +337,7 @@ fn on_charge_transaction_skips_global_withdraw_accounting_for_external_asset() {
337337 Currencies :: withdraw(
338338 DOT ,
339339 & ALICE . into( ) ,
340- 1 * UNITS ,
340+ UNITS ,
341341 frame_support:: traits:: ExistenceRequirement :: AllowDeath
342342 ) ,
343343 pallet_circuit_breaker:: Error :: <hydradx_runtime:: Runtime >:: WithdrawLockdownActive
@@ -407,7 +407,7 @@ fn evm_on_charge_transaction_skips_global_withdraw_accounting() {
407407 Currencies :: withdraw(
408408 WETH ,
409409 & evm_account,
410- 1 * UNITS ,
410+ UNITS ,
411411 frame_support:: traits:: ExistenceRequirement :: AllowDeath
412412 ) ,
413413 pallet_circuit_breaker:: Error :: <hydradx_runtime:: Runtime >:: WithdrawLockdownActive
@@ -804,7 +804,7 @@ fn dot_external_limit_trigger_fails_then_decays_to_zero() {
804804 assert_ok ! ( AssetRegistry :: set_location( DOT , DOT_ASSET_LOCATION ) ) ;
805805
806806 let alice: AccountId = ALICE . into ( ) ;
807- let amount = 1 * UNITS ;
807+ let amount = UNITS ;
808808 assert ! (
809809 Currencies :: free_balance( DOT , & alice) >= amount * 3 ,
810810 "Test requires Alice to have enough DOT"
@@ -877,7 +877,7 @@ fn dot_external_lockdown_blocks_withdraw_but_regular_dot_transfer_still_works()
877877
878878 let alice: AccountId = ALICE . into ( ) ;
879879 let bob: AccountId = BOB . into ( ) ;
880- let amount = 1 * UNITS ;
880+ let amount = UNITS ;
881881 assert ! ( Currencies :: free_balance( DOT , & alice) >= amount * 2 ) ;
882882 assert_eq ! ( CircuitBreaker :: withdraw_limit_accumulator( ) . 0 , 0 ) ;
883883
0 commit comments