-
Notifications
You must be signed in to change notification settings - Fork 711
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
DOT can't transfer directly from parachain to AssetHub #4917
Comments
This is an xtokens issue: https://bifrost.subscan.io/extrinsic/5038923-2, please open an issue there. I see the transfer worked fine with |
@acatangiu Please check the problem carefully. Success depends on receiving DOT on AssetHub.
|
ah, yes, the issue is that Bifrost does not recognize AssetHub as a trusted reserve location for DOT - so it decides to go through the Relay chain as the reserve location, but between Relay and AH DOT has to be teleported, not reserve-transferred. Proper solutionBifrost should trust AH as a reserve for DOT and make their life and their users' lives easy. WorkaroundAs long as Bifrost does not support AH as DOT reserve, DOT transfers to AH will have to go through the Relay chain (as attempted above). The XCM program is being fully constructed on the origin chain (Bifrost), and parachains (Bifrost included) don't hold an on-chain map/registry of which assets can be teleported where. So neither There is no pallet/on-chain solution for this (other than trusting AH as reserve for DOT as described above). The transfer would still be possible by using pallet_xcm::transfer_assets_using_type_and_then() which allows the caller to define which transfer types to use and what should happen on subsequent hops. For this particular transfer, this could work (but also needs #4834): But as you can see, things become complicated when you can't simply transfer DOT straight to AH (trust AH as reserve of DOT). |
I get it,thank you for explaining it to me in detail. |
xtokens.transfer: https://bifrost.subscan.io/xcm_message/polkadot-4e0a1ecd85156b054492a41ea087d48bb82b5466
polkadotXcm.transferAssets: https://bifrost.subscan.io/extrinsic/5039021-2
Both transactions although executed successfully, but fail on AssetHub
The text was updated successfully, but these errors were encountered: