cowprotocol / services

Off-chain services for CoW Protocol
https://cow.fi/
Other
143 stars 61 forks source link

chore: Store surplus capturing jit order owners in solver_competitions table #2793

Open MartinquaXD opened 3 days ago

MartinquaXD commented 3 days ago

Background

The external circuit breaker implementation relies on the solver competitions table to function correctly. One of the checks is that the score promised by the solver and the score delivered onchain should be the same. Since cow amm orders can be created just in time we need to store for each auction which jit order owners were considered to be surplus capturing for a given auction.

harisang commented 3 days ago

Definitely needed, and i would also argue that it is also the right thing to do so that we can have a complete description of an auction instance.