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: Index native prices of tokens traded by CoW AMMs #2755

Closed
MartinquaXD opened this issue May 24, 2024 · 1 comment
Closed

chore: Index native prices of tokens traded by CoW AMMs #2755

MartinquaXD opened this issue May 24, 2024 · 1 comment
Assignees

Comments

@MartinquaXD
Copy link
Contributor

Background

To incentivize solvers to rebalance CoW AMM pools these rebalancing orders need to count towards surplus of the solution to improve its score and therefore increase the likelihood of winning the competition.
In order to compute the surplus a CoW AMM order generates denominated in ETH we need to have a native price for the surplus token in the auction. At the moment the watch tower still indexes "template orders" for each known CoW AMM which we automatically try to fetch the native prices for.
Eventually we would like to stop indexing these template orders and instead only rely on solvers suggesting trades on their own as JIT orders. For this to happen we need to ensure that we have all the required native prices as part of the auction.

Acceptance criteria

We automatically keep track of all the deployed CoW AMMs and their traded tokens. We keep the native prices of these tokens up to date and add them to the auction.
Whenever a solver wants to rebalance a CoW AMM it's their responsibility to check the native prices contained in the auction to determine for which CoW AMM it would be advantageous to rebalance (in order to improve their solution).

@m-lord-renkse
Copy link
Contributor

Done in #2790

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

No branches or pull requests

2 participants