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

Use Uniswap v3 per block mid_price in PriceStructure #489

Open
miohtama opened this issue Jul 27, 2023 · 0 comments
Open

Use Uniswap v3 per block mid_price in PriceStructure #489

miohtama opened this issue Jul 27, 2023 · 0 comments
Assignees
Labels
priority: P1 An important issue that must be fixed before the next release, but does nto require immediate focus.

Comments

@miohtama
Copy link
Collaborator

  • With UniswapV3LivePricing we currently deduct midprice using math
  • This may result PriceStructure.mid_price to be incorrect, causing slippage etc. calculations to suffer
  • However this math might be incorrect because we do not know Uni v3 liquidity state
  • Switch to new get_onchain_price() function and make sure it is using the correct block number (block identifier) when we are recording down this data
@miohtama miohtama added the priority: P1 An important issue that must be fixed before the next release, but does nto require immediate focus. label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: P1 An important issue that must be fixed before the next release, but does nto require immediate focus.
Projects
None yet
Development

No branches or pull requests

2 participants