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

workers: handshake-manager: internal_engine: check that orders are in the same matching pool #697

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

akirillo
Copy link
Contributor

@akirillo akirillo commented Jul 1, 2024

This PR updates the internal matching engine to check that local orders which are candidates for a match are in the same matching pool. For now, we only add this check the internal matching engine.

I tested this ad-hoc by running a local relayer, putting up 2 crossing orders via the CLI, and ensuring that they matched & settled successfully.

Testing that orders not in the same matching pool do not match is deferred for when the admin API endpoint for creating orders in different matching pools is implemented.

@akirillo akirillo added the enhancement New feature or request label Jul 1, 2024
@akirillo akirillo requested a review from joeykraut July 1, 2024 23:34
@akirillo akirillo self-assigned this Jul 1, 2024
@akirillo akirillo force-pushed the andrew/matching-engine-pool-check branch from 9958a18 to 5a0eb69 Compare July 1, 2024 23:38
Copy link
Member

@joeykraut joeykraut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

want to discuss the location of this change before moving forward, open to pushback though

@akirillo akirillo force-pushed the andrew/order-assignment branch 2 times, most recently from 17648ed to 6d9464b Compare July 2, 2024 19:34
Base automatically changed from andrew/order-assignment to andrew/matching-pools July 2, 2024 19:37
@akirillo akirillo force-pushed the andrew/matching-engine-pool-check branch 2 times, most recently from 82cdcf0 to b94d909 Compare July 2, 2024 19:59
@akirillo akirillo force-pushed the andrew/matching-engine-pool-check branch from 199b922 to e424cb1 Compare July 2, 2024 20:00
Copy link
Member

@joeykraut joeykraut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for making the changes

@akirillo akirillo merged commit 8341449 into andrew/matching-pools Jul 2, 2024
3 of 4 checks passed
@akirillo akirillo deleted the andrew/matching-engine-pool-check branch July 2, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants