bitshares / bitshares/bitshares-ui

Instant trade doesn't update market orders on asset buy/sell flip

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

Description

**Describe the bug**

On the instant trade spotlight page when you change CNY_BTS to BTS_CNY by clicking the middle button:

Image

It doesn't fetch the opposite side of the market.

When you refresh the page it does fetch the correct side of the market.

**To Reproduce**
Steps to reproduce the behavior:

Go to the instant trade page.

Enter an amount of an asset to sell.

View the orders which will be involved in your transaction.

Click the flip asset button between the 2 amount fields.

See that the market orders do not change as expected.

Refresh the page, see that the new order of assets has affected the market orders list correctly.

**Expected behavior**

When you flip CNY_BTS to BTS_CNY you're given the other side of the market immediately.

**Desktop (please complete the following information):**

bts.exchange

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue on the instant trade page: enter a sell amount, inspect the market orders, then click the flip asset button. Trace how the flip changes the asset pair and refreshes market orders; done means the opposite side of the market appears immediately without a page refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.