bitshares / bitshares/bitshares-ui

Improve deposit page for coins or tokens on multiple blockchains

Open
#3,400 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
520
Forks
575
Avg merge
12h 7m
Merged PRs (30d)
5

Description

**Is your feature request related to a problem? Please describe.**

Tokens like USDT now natively on multiple blockchains. Many other exchanges support deposits on multiple chains. It is good for bitshares-ui to support multiple chains too.

The deposit page of a modern exchange looks like:
![image](https://user-images.githubusercontent.com/9946777/138359960-c86263c8-32e3-44f5-87fd-344e70f7d0b1.png)

As of writing, on bitshares-ui, when depositing USDT, the deposit page looks like:
![image](https://user-images.githubusercontent.com/9946777/138358985-09881b45-1395-427e-8545-3bd7f65af2b1.png)

The legacy deposit page looks like:
![image](https://user-images.githubusercontent.com/9946777/138359177-78ecef18-0289-4074-91a9-922fe39285c2.png)

And actually the XBTS.io exchange does support multiple chains on their own website:
![image](https://user-images.githubusercontent.com/9946777/138359850-50070b28-52d7-4160-8d3f-53bf0144b6d9.png)

![image](https://user-images.githubusercontent.com/9946777/138360202-178eabe2-2a8e-48e8-bd64-bfc28669ec52.png)

![image](https://user-images.githubusercontent.com/9946777/138360152-0218856d-5785-4d48-a288-715fde74f72a.png)

**Describe the solution you'd like**
Add a drop-down list on the deposit page so that users can choose to deposit on which chain.
Gateway API changes:
* return a list of supported chains when querying a coin/token.
* when querying for deposit address
* if chain name is specified, return deposit address of the specified chain
* if chain name is not specified (this need to be kept for backward compatibility), ideally we need to know which chain it is on

**Describe alternatives you've considered**
/

**Additional context**
> "Improve deposit page to support showing the Blockchain name of deposit address hence some coins or tokens names can co-exist over multiple blockchains"

Contributor guide

Open the contributing guide

Research direction

Start by locating the current deposit page and the gateway flows that query coin details and deposit addresses. Review how the existing single-chain behavior is rendered and how backward compatibility is handled. Done means users can choose a supported chain, see the relevant deposit address and chain, and existing requests without a chain still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain, javascript
Domain
api, blockchain, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.