Skip to content

Pressing "unlock funds" button on a unrecoverable swap involving ETH/ERC-20 repeatedly, spends gas fees repeatedly  #163

@gcharang

Description

@gcharang

This may be an edge case that occurred because of a bug in AtomicdEX-API/(smart contract code), but I think every button press that costs something should report the cost before the button is pressed. or at least ask for a confirmation before the action is performed.

In this particular case, the swap involved ETH and was stuck(unrecoverable)
failed-eth-swap

As the user didn't know that the swap was unrecoverable, and unaware of the gas cost of trying to recover the coins, he tried to unlock the funds many times and wasted a lot of gas fees
gas-wasted-1
gas-wasted-2

maybe we can keep track of gas spent to unlock coins already and display that?

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