Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset Hub: remove XCM sufficient asset fee trader #502

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

muharem
Copy link
Contributor

@muharem muharem commented Nov 14, 2024

Removes sufficient asset trader which used on Asset Hub to pay the XCM fee if there is no pool for a fee asset.

Fixes: #475

@@ -263,133 +263,3 @@ fn cannot_create_pool_from_pool_assets() {
);
});
}

#[test]
fn pay_xcm_fee_with_some_asset_swapped_for_native() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to the spend file

@@ -276,141 +276,3 @@ fn cannot_create_pool_from_pool_assets() {
);
});
}

#[test]
fn pay_xcm_fee_with_some_asset_swapped_for_native() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to the spend file

@@ -496,66 +496,6 @@ fn receive_reserve_asset_deposited_dot_from_asset_hub_polkadot_fees_paid_by_pool
)
}

#[test]
fn receive_reserve_asset_deposited_dot_from_asset_hub_polkadot_fees_paid_by_sufficient_asset_works()
Copy link
Contributor Author

@muharem muharem Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar test where fees paid from the pool exist above

@@ -496,63 +496,6 @@ fn receive_reserve_asset_deposited_ksm_from_asset_hub_kusama_fees_paid_by_pool_s
)
}

#[test]
fn receive_reserve_asset_deposited_ksm_from_asset_hub_kusama_fees_paid_by_sufficient_asset_works() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar test where fees paid from the pool exist above

@muharem muharem changed the title Asset Hub: remove sufficient asset trader Asset Hub: remove XCM sufficient asset fee trader Nov 14, 2024
Copy link
Contributor

@acatangiu acatangiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good (please remove it from testnets as well).

Before merging/releasing this however, we should check to have funded pools for pairs of native and at least the "popular" sufficient assets on Polkadot and Kusama Asset Hubs (DOT, USDT, USDC, WETH, KSM).
Otherwise, we run the risk of breaking currently working usecases/dapps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Asset Hubs: switch over to paying fees using auto-swaps
3 participants