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

Multiple winners e2e test #3066

Merged
merged 4 commits into from
Oct 21, 2024
Merged

Multiple winners e2e test #3066

merged 4 commits into from
Oct 21, 2024

Conversation

sunce86
Copy link
Contributor

@sunce86 sunce86 commented Oct 17, 2024

Description

Implements e2e test for multiple winners per auction feature.

Verifies that:

  1. Two winners are selected
  2. Winning solutions trade disjoint tokens
  3. Two /settle calls are sent and two transactions are mined.
  4. Two settlements are indexed and dependent data is properly saved to database.

How to test

Added test.

@sunce86 sunce86 added the E:6.2 Time to Happy Moo See https://github.com/cowprotocol/pm/issues/77 for details label Oct 17, 2024
@sunce86 sunce86 self-assigned this Oct 17, 2024
@sunce86 sunce86 requested a review from a team as a code owner October 17, 2024 14:46
Comment on lines +22 to +23
max_hops: usize,
merge_solutions: bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

The testing code gets more and more complex it seems. I tried to make this test happen without adding these new arguments but it seems this is not as straight forward.
Seems like the issue is that we need to have native prices which requires a TOKEN <> WETH pool. And since you need to have these pools for all traded tokens to have the order included in the auction you can't prevent a solver from using the route via WETH.
We should probably try cleaning up the e2e testing stuff some time soon. :/

crates/e2e/tests/e2e/limit_orders.rs Outdated Show resolved Hide resolved
@sunce86 sunce86 enabled auto-merge (squash) October 21, 2024 11:32
@sunce86 sunce86 merged commit ba7de86 into main Oct 21, 2024
10 of 11 checks passed
@sunce86 sunce86 deleted the multiple-winners-e2e-2 branch October 21, 2024 11:36
@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
E:6.2 Time to Happy Moo See https://github.com/cowprotocol/pm/issues/77 for details
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants