cowprotocol / services

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

chore: Extend `/quote` response with pre-interactions and Jit orders #3027

Closed MartinquaXD closed 2 weeks ago

MartinquaXD commented 1 month ago

Background

Currently CoW Protocol is in an awkward spot because it can not be the only source of liquidity yet. If all liquidity for a token rests in CoW Protocol's orderbook or some CoW AMM solvers would have no way of using it to quote a price for a given token.

Details

To fix that we should allow solvers to return pre-interactions and JIT orders with their quote. That way solvers could quote with CoW AMMs (require JIT orders and pre-interactions). They could also index the orderbook and return resting limit orders as JIT orders.

Acceptance criteria

squadgazzz commented 2 weeks ago

Closed in favor of https://github.com/cowprotocol/services/issues/3082