Skip to content

XCM executor should use transfer over withdraw/deposit #738

@xlc

Description

@xlc

XCM executor is usually using withdraw and deposit to for asset handling. This has two issues:

  • Hard to link the withdraw & deposit event to trace token movement.
  • ERC20 only have transfer method. It is simply impossible to perform withdraw/deposit operation with it.

Acala supports transfer ERC20 to other parachain with XCM. However we have to implement some relative unsafe code to make it work.

It will be good if the implementation uses transfer for most of the token operation and withdraw/deposit only absolutely necessary, and I cannot think of any reason why XCM executor should be allowed to mint/burn token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T6-XCMThis PR/Issue is related to XCM.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions