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

dex: implement execution against positions #2125

Merged
merged 10 commits into from
Mar 10, 2023
Merged

dex: implement execution against positions #2125

merged 10 commits into from
Mar 10, 2023

Conversation

hdevalence
Copy link
Member

@hdevalence hdevalence commented Mar 9, 2023

In particular, the PositionManager now has a fill_against method. Now that this code exists, we're ready to write a state machine test that creates a few LP positions, tests different executions against them (using a to-be-written method that finds the cheapest position for a trading pair), and checks that the executions are as expected.

@hdevalence hdevalence temporarily deployed to smoke-test March 9, 2023 07:47 — with GitHub Actions Inactive
@hdevalence hdevalence temporarily deployed to smoke-test March 9, 2023 17:32 — with GitHub Actions Inactive
@erwanor erwanor temporarily deployed to smoke-test March 9, 2023 22:12 — with GitHub Actions Inactive
hdevalence and others added 6 commits March 9, 2023 18:11
Co-Authored-By: erwanor <erwan.ounn.84@gmail.com>
Co-Authored-By: erwanor <erwan.ounn.84@gmail.com>
Co-Authored-By: erwanor <erwan.ounn.84@gmail.com>
Co-Authored-By: erwanor <erwan.ounn.84@gmail.com>
@hdevalence hdevalence changed the title dex: replace stub fp arithmetic with U128x128 dex: implement execution against positions Mar 10, 2023
@hdevalence hdevalence temporarily deployed to smoke-test March 10, 2023 02:15 — with GitHub Actions Inactive
@hdevalence hdevalence requested a review from zbuc March 10, 2023 02:17
hdevalence and others added 4 commits March 9, 2023 22:52
It's much more intuitive to have the direction be "forwards" (trade 1 for 2) than "backwards" (trade 2 for 1)

Co-Authored-By: erwanor <erwan.ounn.84@gmail.com>
Co-Authored-By: erwanor <erwan.ounn.84@gmail.com>
Co-Authored-By: erwanor <erwan.ounn.84@gmail.com>
Co-Authored-By: erwanor <erwan.ounn.84@gmail.com>
@hdevalence hdevalence temporarily deployed to smoke-test March 10, 2023 06:53 — with GitHub Actions Inactive
@hdevalence hdevalence merged commit 2feff40 into main Mar 10, 2023
@hdevalence hdevalence deleted the lp-execute branch March 10, 2023 07:17
@cratelyn cratelyn added the A-dex Area: Relates to the dex label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dex Area: Relates to the dex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants