diff --git a/pallets/flexible-fee/src/mock.rs b/pallets/flexible-fee/src/mock.rs index 59314f629b..42f49893ba 100644 --- a/pallets/flexible-fee/src/mock.rs +++ b/pallets/flexible-fee/src/mock.rs @@ -215,14 +215,14 @@ parameter_types! { } impl zenlink_protocol::Config for Test { - type Conversion = (); type Event = Event; - type GetExchangeFee = GetExchangeFee; type MultiAssetsHandler = MultiAssets; type PalletId = ZenlinkPalletId; type SelfParaId = SelfParaId; + type TargetChains = (); type XcmExecutor = (); + type Conversion = (); } type MultiAssets = ZenlinkMultiAssets>; diff --git a/pallets/flexible-fee/src/tests.rs b/pallets/flexible-fee/src/tests.rs index df636595a8..2889b07641 100644 --- a/pallets/flexible-fee/src/tests.rs +++ b/pallets/flexible-fee/src/tests.rs @@ -82,12 +82,6 @@ fn basic_setup() { let asset_1_currency_id: AssetId = AssetId::try_from(CURRENCY_ID_1).unwrap(); let asset_2_currency_id: AssetId = AssetId::try_from(CURRENCY_ID_2).unwrap(); - assert_ok!(ZenlinkProtocol::create_pair( - Origin::signed(ALICE), - asset_0_currency_id, - asset_1_currency_id - )); - let mut deadline: BlockNumberFor = >::block_number() + ::BlockNumber::from(100u32); assert_ok!(ZenlinkProtocol::add_liquidity( @@ -101,17 +95,6 @@ fn basic_setup() { deadline )); - assert_ok!(ZenlinkProtocol::create_pair( - Origin::signed(ALICE), - asset_0_currency_id, - asset_2_currency_id - )); // asset 0 and 2 - - let pool_0_2_account = ZenlinkProtocol::lp_metadata((asset_0_currency_id, asset_2_currency_id)) - .unwrap() - .0; - println!("pool_0_2_account: {:?}", pool_0_2_account); - // pool 0 2 deadline = >::block_number() + ::BlockNumber::from(100u32); @@ -199,27 +182,6 @@ fn ensure_can_charge_fee_should_work() { Some(asset_order_list_vec.clone()), ); - let native_asset_id: AssetId = AssetId::try_from(CURRENCY_ID_0).unwrap(); - let asset_id: AssetId = AssetId::try_from(CURRENCY_ID_1).unwrap(); - - let path = vec![asset_id, native_asset_id]; - let pool_0_1_account = ZenlinkProtocol::lp_metadata((native_asset_id, asset_id)).unwrap().0; - - println!("pool_0_1_account: {:?}", pool_0_1_account); - - let pool_0_1_price = ZenlinkProtocol::get_amount_in_by_path(100, &path); - let pool_0_1_account = ZenlinkProtocol::lp_metadata((native_asset_id, asset_id)).unwrap().0; - - println!("pool_0_1_price: {:?}", pool_0_1_price); - println!( - "crrency 0 total balance of pool_0_1: {:?}", - Currencies::total_balance(CURRENCY_ID_0, &pool_0_1_account) - ); - println!( - "crrency 1 total balance of pool_0_1: {:?}", - Currencies::total_balance(CURRENCY_ID_1, &pool_0_1_account) - ); - assert_ok!(::FeeDealer::ensure_can_charge_fee( &ALICE, 100, diff --git a/pallets/minter-reward/src/mock.rs b/pallets/minter-reward/src/mock.rs index 5350b6cdb0..b1d7a6b4f6 100644 --- a/pallets/minter-reward/src/mock.rs +++ b/pallets/minter-reward/src/mock.rs @@ -168,7 +168,6 @@ parameter_types! { impl zenlink_protocol::Config for Runtime { type Conversion = (); type Event = Event; - type GetExchangeFee = GetExchangeFee; type MultiAssetsHandler = MultiAssets; type PalletId = ZenlinkPalletId; // type SelfParaId = SelfParaId; diff --git a/pallets/minter-reward/src/tests.rs b/pallets/minter-reward/src/tests.rs index 73eb8acc71..0754c0ee39 100644 --- a/pallets/minter-reward/src/tests.rs +++ b/pallets/minter-reward/src/tests.rs @@ -73,27 +73,6 @@ fn minter_reward_should_work() { let vksm_asset_id: AssetId = AssetId::try_from(CurrencyId::VToken(TokenSymbol::KSM)).unwrap(); - assert_ok!(ZenlinkProtocol::create_pair( - Origin::signed(ALICE), - ausd_asset_id, - dot_asset_id - )); - assert_ok!(ZenlinkProtocol::create_pair( - Origin::signed(ALICE), - ausd_asset_id, - vdot_asset_id - )); - assert_ok!(ZenlinkProtocol::create_pair( - Origin::signed(ALICE), - ausd_asset_id, - ksm_asset_id - )); - assert_ok!(ZenlinkProtocol::create_pair( - Origin::signed(ALICE), - ausd_asset_id, - vksm_asset_id - )); - let deadline: BlockNumberFor = >::block_number() + ::BlockNumber::from(100u32); assert_ok!(ZenlinkProtocol::add_liquidity( diff --git a/pallets/vtoken-mint/src/mock.rs b/pallets/vtoken-mint/src/mock.rs index 128a362309..0a0035f8df 100644 --- a/pallets/vtoken-mint/src/mock.rs +++ b/pallets/vtoken-mint/src/mock.rs @@ -189,7 +189,6 @@ parameter_types! { impl zenlink_protocol::Config for Runtime { type Conversion = (); type Event = Event; - type GetExchangeFee = GetExchangeFee; type MultiAssetsHandler = MultiAssets; type PalletId = ZenlinkPalletId; type SelfParaId = ();