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

Add live price feed equivalence tests #29

Open
lekhovitsky opened this issue Nov 29, 2023 · 0 comments
Open

Add live price feed equivalence tests #29

lekhovitsky opened this issue Nov 29, 2023 · 0 comments
Assignees

Comments

@lekhovitsky
Copy link
Collaborator

lekhovitsky commented Nov 29, 2023

Two potential approaches for LP price feeds:

  1. Ensure that when we deposit a token (or multiple tokens) into the pool, the position doesn't change much in value (most importantly, it does not drastically grow)
  2. For DEX liquidity pools, might as well compare our price to an aggregate price of pool's holdings per pool's share:

$$ \frac{\sum_i \mathrm{price}_i * \mathrm{balance}_i}{\mathrm{total\ supply}} $$

(it does not work that good for unbalanced weighted Balancer pools)

@lekhovitsky lekhovitsky self-assigned this Dec 7, 2023
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

1 participant