decentralizedlabs / uniswap-v3-price-feed

Decentralized price feed based on Uniswap V3 TWAP oracles
MIT License
22 stars 3 forks source link

TWAP calculation in the getQuoteAndUpdatePool #17

Open nikitaVagin95 opened 7 months ago

nikitaVagin95 commented 7 months ago

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?