divaprotocol / diva-monorepo

Diva Monorepo
https://diva.finance
4 stars 4 forks source link

Fix 0x orders refresh #805

Open Walodja1987 opened 1 year ago

Walodja1987 commented 1 year ago

Bug description

The trading page was accessing wrong 0x orders from the Redux stores when the user navigated from a market with existing orders to a market without orders via a trade page link. This resulted in wrong calculations for expected rate and Remaining allowance for the newly opened market.

This PR fixes this by requesting fresh orders from the 0x server.

dapplingnetwork[bot] commented 1 year ago

Github deployment failed. It's most likely due to a merge conflict, but could also be because the code build failed, or something else... Go to dappling.network to view the preview build and logs. Please reach out if you get stuck - we're here to help!