atomiclabs / atomiclabs/hyperdex

stuck swaps should get ability to be kickstarted

Open
#626 0 comments 0 reactions 0 assignees View on GitHub
enhancement mm2.0
Dominant language
JavaScript
Stars
151
Forks
55
PR merge metrics
No merged PRs in 30d

Description

**Describe the feature**

Stuck swaps are in a state where funds are still in a temporary address, but are eligible for spending. Often, this happens when the user has closed the app during a swap, or network issues prevented a successful spending of funds in this temporary address.

There exists a RPC that handles the recovery of stuck funds, see [here](https://developers.komodoplatform.com/basic-docs/atomicdex/atomicdex-api.html#recover-funds-of-swap).

In the Open Orders section, there could/should be a button `kickstart` that allows a user to kickstart a trade that is pending or at a certain step in the swap procedure.

![image](https://user-images.githubusercontent.com/10341677/68865966-f6767780-06f3-11ea-808a-b64f2a744155.png)

Or otherwise a `kickstart` button in the details section of a swap, where it's possible to see at what stage a trade is in:

![image](https://user-images.githubusercontent.com/10341677/68866023-1312af80-06f4-11ea-829f-837d02363035.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked recover-funds RPC documentation to understand the recovery operation and its eligible swap states. Inspect the Open Orders and swap details sections shown in the issue to find where a kickstart action belongs. Done means eligible stuck swaps expose the action and the recovery result is reflected in the UI.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.