Skip to content

Dex swap will kill the account #2834

@zjb0807

Description

@zjb0807

In a swap transaction, in comes from the sender and out goes to the sender, so the sender should keep alive

Case 1:
When a user has ACA tokens and has bound their EVM address, swapping all ACA for DOT will result in the user being automatically unbound from the EVM address, and the nonce will be reset.
Solution: The FE should keep the ED when swapping all ACA

Case 2:
When a user holds ACA and 0.011 DOT (0.01 ED), and uses all ACA to exchange for ERC20 tokens, the following scenarios occur:

  • ACA is used to pay the transaction handling fee
  • DOT is used to pay the EVM storage fee
  • If the total funds do not meet the existential deposit (ED) requirements:

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