-
Notifications
You must be signed in to change notification settings - Fork 82
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
feat: Balances of CoW AMMs in batch auction json #2715
Comments
It would be easy but prone to race conditions and I don't think we should put it in the autopilot. If at all it could be considered part of the liquidity fetching in the driver, but I'm not sure we want to invest ressources for that (solver teams are welcome to contribute a PR) |
Question: if the driver is not providing the cow amms, I suppose it is also not providing the external prices for those cow amms. If that is the case, how is the surplus for cow orders computed? |
@harisang correct me if I'm wrong, but I think plan is to provide a list of contract addresses that represent CoW AMMs and make sure that there are external prices for their assets in the auction. |
You mean this list of addresses is going to be part of the instance json, or is it somehow implicit what the list is, and the driver will make sure its traded tokens are listed there? |
cc @Mateo-mro since you worked on this. How do solvers know which addresses are allowed to have surplus capturing JIT created by them? |
# Description The solvers would need to know the JIT-order surplus capturing addresses (see e.g. #2715 (comment)). For that the owner addresses are propagated to the solvers in the auction json. # Changes Propagate the list of surplus capturing JIT-order owners to the solvers in the auction json. ## How to test 1. Regression tests
@fleupold @marcovc I added the propagation of the addresses to the solvers, see https://github.com/cowprotocol/services/blob/main/crates/solvers/openapi.yml#L662 |
Great, thank you! |
This issue has been marked as stale because it has been inactive a while. Please update this issue or it will be automatically closed. |
A solver team asked whether it would be possible to include up-to-date balances of (some curated list of) CoW AMMs in the auctions the autopilot sends out. Would that be easy to do, or should we leave it up to the solvers to do that?
The text was updated successfully, but these errors were encountered: