Sitelet https://github.com/open-web3-stack/open-runtime-module-library/issues/913
Skip to content

Support Reserve and Non-Reserve Asset Transfer in a Single XCM Message #913

Description

@albertov19

Polkadot Forum Post

As far as I know, there is no extrinsic to construct an XCM message that can transfer both a Reserve and Non-Reserve asset in a single message.

It would be great for xTokens to enable this via an extrinsic call that would construct the following XCM message (from an XCM message going from Chain A to Chain B):

  • ReserveAssetDeposited - To mint the representation of Reserve Asset A on Chain B.
  • WithdrawAsset - To withdraw Reserve Asset B tokens from Chain A’s sovereign account.
  • ClearOrigin - To clear all origin info.
  • BuyExecution
  • DepositAsset

The important thing to note is that we would need to handle fund management in the origin chain (Chain A in this case) as we can't use instructions that would do this like TransferReserveAsset or InitiateReserveWithdraw

(cc @librelois)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions