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

Finish limit order implementation #3

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

die-herdplatte
Copy link
Contributor

No description provided.

@moodysalem moodysalem changed the base branch from main to limit-orders November 21, 2024 16:16
@moodysalem moodysalem merged commit 07977a9 into EkuboProtocol:limit-orders Nov 21, 2024
1 check passed
moodysalem added a commit that referenced this pull request Dec 12, 2024
* limit orders

* more progress on limit orders pool

* checkpoint

* Finish limit order implementation (#3)

* Finish limit order implementation

* Run cargo fmt

* Fix wrong interpretation of active_tick_index = None

Saturate instead of wrapping around when we're at the high tick bounds

* failing unit test

* remove an unnecessary unsigned abs

* Fix limit orders behavior when changing swap directions (#4)

* Finish limit order implementation

* Run cargo fmt

* Fix wrong interpretation of active_tick_index = None

Saturate instead of wrapping around when we're at the high tick bounds

* Fix behavior when changing swap directions

* demonstrate trade not going all the way through

* bug was with active liquidity

* add a failing test

* Fix unpulled order tick index computation (#5)

Also improve performance by not doing a partial swap to the active tick index price limit if the active tick index is the highest/lowest seen tick index

* add more unit tests

* constructor validation for limit order pool

* add one more constructor validation test

---------

Co-authored-by: die-herdplatte <[email protected]>
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