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

TWAP calculation in the getQuoteAndUpdatePool #17

Open
nikitaVagin95 opened this issue Feb 27, 2024 · 0 comments
Open

TWAP calculation in the getQuoteAndUpdatePool #17

nikitaVagin95 opened this issue Feb 27, 2024 · 0 comments

Comments

@nikitaVagin95
Copy link

Hi, @jjranalli
Is there a bug that in getQuoteAndUpdatePool function you get the tickCumulatives for 30 minutes interval and then if tickCumulatives.length != 0 divide it by secondsTwapInterval which may not be equal to 30 minutes?

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