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

Limit number of orders per merged solutions in driver #3314

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sunce86
Copy link
Contributor

@sunce86 sunce86 commented Mar 6, 2025

Description

Fixes #3306

Driver tries to merge solutions received from solver API.

This PR introduces configuration parameter used to filter out all merged solutions that contain more than 3 orders. The purpose is to optimize solution building during volatility periods (in these periods solutions with lower number of orders are preferred as potentially easier to submit onchain - less likely to revert)

Changes

  • Added configuration parameter to limit number of orders per merged solution in driver.

@sunce86 sunce86 added the oncall Issue/PR for consideration during oncall rotation label Mar 6, 2025
@sunce86 sunce86 self-assigned this Mar 6, 2025
@sunce86 sunce86 requested a review from a team as a code owner March 6, 2025 18:56
Copy link
Contributor

@squadgazzz squadgazzz left a comment

Choose a reason for hiding this comment

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

LGTM

@sunce86
Copy link
Contributor Author

sunce86 commented Mar 7, 2025

@cowprotocol/solver do you guys think 3 is an appropriate choice here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
oncall Issue/PR for consideration during oncall rotation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Limit the number of orders in merged solutions
4 participants