Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use inverse price order in legacy as well #89

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

fedgiac
Copy link
Collaborator

@fedgiac fedgiac commented Jun 27, 2024

Unfortunately #87 isn't enough to fix the issue mentioned in the description: this is because getTradeableOrder is also used in the legacy math, where it wasn't updated.

Here the code is adjusted in the legacy path as well.

How to test

Notice that getTradeableOrder is only used twice, and in both cases we changed the order of the price vector.

@fedgiac fedgiac merged commit 0d7af6f into test-interface Jun 28, 2024
3 checks passed
@fedgiac fedgiac deleted the also-update-prices-for-legacy-orders branch June 28, 2024 07:12
fedgiac added a commit that referenced this pull request Jul 5, 2024
Deploy the contracts again with the changes from #87 and #89.
They were deployed in `cheap-deployment` mode.

### How to test

Check deployed code on block explorer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants