Skip to content

Limit number of orders per merged solutions in driver#3314

Merged
sunce86 merged 3 commits intomainfrom
limit-orders-per-merged-solution
Mar 10, 2025
Merged

Limit number of orders per merged solutions in driver#3314
sunce86 merged 3 commits intomainfrom
limit-orders-per-merged-solution

Conversation

@sunce86
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

sunce86 commented Mar 7, 2025

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

@sunce86 sunce86 enabled auto-merge (squash) March 10, 2025 13:55
@sunce86 sunce86 merged commit ca77ce4 into main Mar 10, 2025
11 checks passed
@sunce86 sunce86 deleted the limit-orders-per-merged-solution branch March 10, 2025 14:03
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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