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

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

Closed
MartinquaXD opened this issue Oct 1, 2024 · 1 comment
Closed
Assignees

Comments

@MartinquaXD
Copy link
Contributor

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

  • update driver -> autopilot /quote reponse to pass a list of pre-interactions and a list of JIT orders (format of jit orders should ideally be the same as in the /solve endpoint)
  • updated the openapi spec
@squadgazzz
Copy link
Contributor

Closed in favor of #3082

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants