bitshares / bitshares/bitshares-ui
Instant trade doesn't update market orders on asset buy/sell flip
- 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:
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
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