Skip to content

Remove price update constraint from order flow#1468

Closed
liamzebedee wants to merge 1 commit intofutures-implementationfrom
spot-price
Closed

Remove price update constraint from order flow#1468
liamzebedee wants to merge 1 commit intofutures-implementationfrom
spot-price

Conversation

@liamzebedee
Copy link
Copy Markdown
Contributor

@liamzebedee liamzebedee commented Aug 19, 2021

We decided on Tuesday in Discord that in order to proceed with resolving Synthetixio/issues#260, we would remove the price update constraint from order flow and use the spot price for order confirmation in futures.

To unblock the monsieur le frontend, this PR only removes logic, and doesn't refactor. I started on refactoring the submitOrder and confirmOrder into one func - there's a lot of work to be done in refactoring the code to work with instant confirms - eg. canConfirmOrder and orderStatus currently rely on the submitted order in storage, whereas now we should be passing the order as an argument. Same with the tests, moving price updates up before the submitOrder.

@liamzebedee
Copy link
Copy Markdown
Contributor Author

Closed in favour of #1477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant