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

[oracle] Take the pool fees, balances and weights into account when estimating swapped amounts #9

Open
3 tasks
gmanev7 opened this issue Jan 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@gmanev7
Copy link
Member

gmanev7 commented Jan 12, 2023

Currently, the calculations are done using spot prices. For improving accuracy and avoiding potential losses due to high-error calculations we have to use the same algorithm as the one at DEX.

  • change the Oracle stub interface to calculate quantities, not prices
  • supply all missing data by the feeder
  • perform the calculation as per the formula
@gmanev7 gmanev7 added the enhancement New feature or request label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant