-
Notifications
You must be signed in to change notification settings - Fork 151
Implement sell=buy support for Sell orders #3894
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
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
0addb36
Reimplement sell=buy PoC PR
m-sz 19941ce
Fix failing sell=buy test
m-sz 9b44cfd
cleanup
m-sz ae7d14b
cleanup comments
m-sz ff4e678
Feature flag for sell=buy
m-sz 8893b86
Rename liquidity_pairs to token_liquidity
m-sz bb1fb95
Refactor Route and sell=buy validation control
m-sz d7304b0
Fix quote verification for sell=buy
m-sz 44ec35e
fmt
m-sz 61725f9
Addressed comments
m-sz 47ffd26
Remove sell=buy test case already covered by onchain verification
m-sz 6994ce4
Remove the builder method for allowing same sell and buy token
m-sz 7d3bf9b
Update crates/orderbook/src/arguments.rs
m-sz 59fcc64
Update crates/shared/src/price_estimation/sanitized.rs
m-sz e59f421
Update crates/e2e/tests/e2e/place_order_with_quote.rs
m-sz 6ebc5aa
Apply suggestion from @MartinquaXD
m-sz a1d568f
Rename allow_same_sell_and_buy_token to disallow_...
m-sz 0dd6754
Address comments
m-sz eaec342
Update crates/shared/src/order_validation.rs
m-sz 265d17e
Remove buy orders support for sell=buy
m-sz 73682d5
fmt
m-sz 2bcb29e
Remove unused QuoteComputationError
m-sz b7837cb
Change same token validation to return Result
m-sz c97d196
Update crates/driver/src/domain/quote.rs
m-sz a955c22
Update crates/orderbook/src/arguments.rs
m-sz 307e7fb
Update crates/shared/src/price_estimation/factory.rs
m-sz d2cbf6e
Update crates/shared/src/price_estimation/sanitized.rs
m-sz f690b29
Update crates/shared/src/order_validation.rs
m-sz 75273a2
Update crates/shared/src/order_validation.rs
m-sz ec5a055
Update crates/solvers/src/domain/solver.rs
m-sz 348f584
fmt
m-sz 5ab57d6
Merge branch 'main' into sell=buy
m-sz 2656b98
NonZeroU256 usage fix in tests after merging
m-sz 295e56b
Update crates/orderbook/src/arguments.rs
m-sz 1476ff9
Update crates/e2e/tests/e2e/submission.rs
m-sz 0ec4291
Address comments
m-sz 0644027
Merge branch 'main' into sell=buy
m-sz 8efe448
Merge branch 'main' into sell=buy
m-sz f42b7ae
Revert before/after balance calculation
m-sz b5c612c
Merge branch 'main' into sell=buy
m-sz f46c77d
clippy
m-sz 6a55fd9
Fix out_amount calculation for sell=buy
m-sz c99d351
Minor changes: comments and log level
m-sz 56ad09a
Merge branch 'main' into sell=buy
m-sz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to get some feedback from solvers how they would expect this to work. Specifically to ask them about using the regular quoting logic vs. building something into the orderbook which only needs the native price of the tokens and a simulation to get the gas amount.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea, I will ask them.