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

Prioritize newer orders in auction #2397

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

MartinquaXD
Copy link
Contributor

Description

When we build the auction in the autopilot we filter out orders that are unlikely to be filled to shrink the auction to a more manageable size.
One step is to filter out fill-or-kill orders where the owner doesn't have enough sell_token for all of the open orders. The new logic sorts orders by creation_timestamp (desc) to first use the user's existing balance on recent orders rather than old ones.

Fixes: #1997

@MartinquaXD MartinquaXD requested a review from a team as a code owner February 10, 2024 22:45
Copy link
Contributor

@sunce86 sunce86 left a comment

Choose a reason for hiding this comment

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

Lg.

@MartinquaXD MartinquaXD merged commit 11ec759 into main Feb 12, 2024
9 checks passed
@MartinquaXD MartinquaXD deleted the prioritize-newer-orders-in-auction branch February 12, 2024 11:07
@github-actions github-actions bot locked and limited conversation to collaborators Feb 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: SolvableOrders is filtering out orders by balance but not prioritising newer orders
3 participants