atomiclabs / atomiclabs/hyperdex

Show all the order's swaps in the "swap modal"

Open
#616 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
151
Forks
55
PR merge metrics
No merged PRs in 30d

Description

Read https://github.com/atomiclabs/hyperdex/issues/615 first.

Currently, when you click an item in the "recent orders", we show the swap status and progress. Now that an order can have multiple swaps, we need to show all the swaps for that order. So if an order has multiple swaps, the total progress needs to reflect that and we also need to show the swap events for each swap. And we need to show whether the order is a "Taker" or "Maker" order.

For the swap events, the simplest solution would be to just reuse the UI we currently have for swap events, but have one of those for each swap, so it becomes multiple rows.

Something like this (quick idea mockup):

![Untitled-1](https://user-images.githubusercontent.com/170270/62474561-714dff00-b7a3-11e9-9951-30e9f6bca1f1.png)

Each row will have to show how much of the order the swap is trading in amount and percentage.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.