-
Notifications
You must be signed in to change notification settings - Fork 746
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
Update teleport_assets
Extrinsics for Foreign Assets
#96
Comments
We've tried to implement PoC for buying execution on destination from sovereign account for |
@acatangiu is this addressed by some of the other |
This is possible now, but only if the Parachain trusts AH as reserve for DOT, so it can send
where
fees paid with DOT If the Parachain does NOT trust AH as reserve, there is NO way to send both assets at once (in a single transfer), because they would have different routes, so two independent asynchronous messages with no ordering guarantee:
if the transfer is fired for both assets at the same time, When Parachain trusts AH as reserve for DOTSimply use Example: bidirectional transfers of Or one can also explicitly define the "route" and "types" of transfer used with Example: bidirectional transfers of |
Right now the
teleport_assets_*
extrinsics use the teleported asset toBuyExecution
on the destination chain. This can cause a problem if the teleported asset cannot be used for fee payment.As an example, a parachain may be a trusted teleporter of its own native asset, but not for DOT, which is valid for fee payment on Asset Hub.
The extrinsic should be able to construct alternate XCM programs that would pay fees according to the parameters. Options include:
WithdrawAsset
from the parachain's sovereign account on the destination chain and use that forBuyExecution
.ReceiveTeleportedAsset
instruction.Probably requires changes to the impl of
XcmExecutor
(e.g. inInitiateTeleportedAsset
.Originally posted by @joepetrowski in paritytech/cumulus#2935 (comment)
The text was updated successfully, but these errors were encountered: