KomodoPlatform / komodo-defi-framework

This is the official Komodo DeFi Framework repository
https://komodoplatform.com/en/docs/komodo-defi-framework/
103 stars 94 forks source link

Implement `recover_funds_of_swap` as a part of adex-cli #1791

Closed rozhkovdmitrii closed 1 year ago

rozhkovdmitrii commented 1 year ago

Impact

In certain cases, a swap can finish with an error wherein the user's funds are stuck on the swap-payment address. (This address is the P2SH address when executing on a utxo-based blockchain, or an etomic-swap smart contract when executing on an ETH/ERC20 blockchain.)

This error can occur when one side of the trade does not follow the protocol (for any reason). The error persists as attempts to refund the payment fail due to network connection issues between the AtomicDEX API node and the coin's RPC server.

Todo:

There is the command recover_funds_of_swap in Komodo Wallet RPC API that should be provided by the adex-cli

rozhkovdmitrii commented 1 year ago

superseded by #1798