Skip to content

Release v0.6.2

Compare
Choose a tag to compare
@tailingchen tailingchen released this 02 Mar 08:05
· 34 commits to main since this release

[0.6.2] - 2023-03-01

  • observations extends to 1800 at CumulativeTwap.sol to support extreme circumstance.
  • To better enhance above performance, we introduce binary search mimicked from https://github.com/Uniswap/v3-core/blob/05c10bf/contracts/libraries/Oracle.sol#L153.
  • Remove CT_NEH from CumulativeTwap.sol. Won't be calculated if so. Simply return latest price at CachedTwap.sol.
  • Fix imprecise TWAP calculation when historical data is not enough at CumulativeTwap.sol. Won't be calculated if so.

[0.6.1] - 2023-03-01

  • Fix cachedTwap won't be updated when latest updated timestamp not changed

[0.6.0] - 2023-03-01

Added

  • Add ChainlinkPriceFeedV3.sol with better error handling when Chainlink is broken.
  • Add PriceFeedDispatcher.sol, a proxy layer to fetch Chainlink or Uniswap's price.
  • Add UniswapV3PriceFeed.sol to fetch a market TWAP with a hard coded time period.
  • Update CachedTwap.sol and CumulativeTwap.sol to better support above fallbackable oracle

[0.5.1] - 2023-02-07

  • Add ChainlinkPriceFeedV1R1