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 in withdraw script #72

Merged
merged 2 commits into from
Feb 26, 2024
Merged

Conversation

fleupold
Copy link
Contributor

The settlement contract has a limit on 50 open orders per user (including itself). Also generally, it makes sense to limit the amount of trades we do per withdrawal.

Copy link
Contributor

github-actions bot commented Feb 23, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

Copy link
Contributor

Pull Request Test Coverage Report for Build 8018532229

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.398%

Totals Coverage Status
Change from base Build 7500822283: 0.0%
Covered Lines: 364
Relevant Lines: 366

💛 - Coveralls

@fleupold
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Feb 23, 2024
Copy link
Contributor

@fedgiac fedgiac left a comment

Choose a reason for hiding this comment

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

Looks good.
An improvement suggestion would be first sorting the orders by feePercent (computed in the lines above the truncation), so that we drop orders that have a relatively high execution cost.

@fleupold
Copy link
Contributor Author

Related to cowprotocol/services#2433

@fleupold fleupold merged commit 76e311e into main Feb 26, 2024
5 checks passed
@fleupold fleupold deleted the withdraw_limit_orders branch February 26, 2024 11:41
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 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.

2 participants