Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge winners with participants (#3042)
# Description Extracted from https://github.com/cowprotocol/services/pull/2980/files Merges participants and winners into a single vector, which is much easier to work with and forward around. Also reduces quite a few roundtrips when iterating over participants to determine winning and non-winning orders etc. Winner selection logic is just moved into `Runloop::competition` function so that `Participant` could become a main struct we work with and try to even remove `RawParticipant` with refactors in the future, or at least make it local to competition only. # Changes <!-- List of detailed changes (how the change is accomplished) --> - [ ] Moved `Participants` into `domain` - [ ] `Participants` now contain `winner` to determine if it's a winner and allowed to settle. ## How to test Existing e2e tests. <!-- ## Related Issues Fixes # -->
- Loading branch information