In the original implementation tick was not rounded to negative when tickCumulatives[1] is less than tickCumulatives[0]. The incorrect price calculation could result arbitrage opportunities.
Mitigation
commit 8e3231d
The mitigation removed the whole stablecoin framework: /stablecoin, /price_feed, WBTC/WETH collateral, PriceAggregator, price feeds and USDS.
The original issue was resolved since the flaw function and affected modules had been entirely removed.
Lines of code
Vulnerability details
Comments
In the original implementation
tick
was not rounded to negative whentickCumulatives[1]
is less thantickCumulatives[0]
. The incorrect price calculation could result arbitrage opportunities.Mitigation
commit 8e3231d The mitigation removed the whole stablecoin framework: /stablecoin, /price_feed, WBTC/WETH collateral, PriceAggregator, price feeds and USDS. The original issue was resolved since the flaw function and affected modules had been entirely removed.
Conclusion
Confirmed