open-runtime-module-library icon indicating copy to clipboard operation
open-runtime-module-library copied to clipboard

Foreign Assets reserve backed transfer

Open green-jay opened this issue 1 year ago • 0 comments

The implementation of MultiNativeAsset rejects assets whose origin is not from the reserve location.

This is an issue for integrating with foreign assets on Asset Hub as the origin will be Asset Hub Location {parents: 1, interior: X2(Parachain(1000))} and the Asset Location will be {parents: 2, interior: X2(Ethereum, AccountKey20(CONTRACT_ADDRESS))}

This change will need to be made so that we reserve transfer foreign assets.

Here is an example of checking for reserves for Ethereum assets from Asset Hub: https://github.com/Snowfork/polkadot-sdk/blob/snowbridge/cumulus/parachains/runtimes/testing/penpal/src/xcm_config.rs#L319

green-jay avatar Feb 22 '24 16:02 green-jay