Skip to content

Releases: perpetual-protocol/perp-oracle-contract

Release v0.6.7

09 May 06:53
9551a9a
Compare
Choose a tag to compare

Changelog

All notable changes to this project will be documented in this file.

[0.6.7] - 2023-05-05

  • Add IPriceFeedDispatcher.decimals back for backward compatible.

[0.6.6] - 2023-05-05

  • Add PriceFeedDispatcher.getPrice for backward compatible.

[0.6.5] - 2023-03-31

  • Refine natspec

[0.6.4] - 2023-03-30

  • Rename ChainlinkPriceFeedV3.getCachedTwap to ChainlinkPriceFeedV3.getPrice.
  • Rename ChainlinkPriceFeedV3.getCachedPrice to ChainlinkPriceFeedV3.getLatestOrCachedPrice.

[0.6.3] - 2023-03-14

  • Add ChainlinkPriceFeedV3.getCachePrice to fetch the latest valid price and updated timestamp.
  • Add ChainlinkPriceFeedV3.getTimeout to get timeout config of ChainlinkPriceFeedV3.

Release v0.6.2

02 Mar 08:05
Compare
Choose a tag to compare

[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

Release v0.5.0

23 Aug 09:16
5042fb8
Compare
Choose a tag to compare

[0.5.0] - 2022-08-23

  • Add PriceFeedUpdater

Release v0.4.3

16 Jun 03:43
Compare
Choose a tag to compare

Add new interface IChainlinkPriceFeed for ChainlinkPriceFeed and ChainlinkPriceFeedV2.

Release v0.4.2

08 Jun 03:22
Compare
Choose a tag to compare

Add ChainlinkPriceFeed.getRoundData()

Release v0.4.1

24 May 07:42
6b676f4
Compare
Choose a tag to compare
  • Fix npm pack

Release v0.4.0

24 May 06:16
fdc2043
Compare
Choose a tag to compare

[0.4.0] - 2022-05-24

  • Add ChainlinkPriceFeedV2, which calculates the twap by cached twap.
  • Add origin ChainlinkPriceFeed, which calculates the twap by round data instead of cached twap.

v0.3.4

01 Apr 05:48
Compare
Choose a tag to compare

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.

[unreleased]

[0.3.4] - 2022-04-01

  • Add cacheTwap(uint256) to IPriceFeed.sol and EmergencyPriceFeed.sol
  • Remove ICachedTwap.sol

[0.3.3] - 2022-03-18

Changed

  • Refactor ChainlinkPriceFeed, BandPriceFeed, and EmergencyPriceFeed with efficient TWAP calculation.
  • Change the license to GPL-3.0-or-later.

[0.3.2] - 2022-03-04

  • Using cumulative twap in Chainlink price feed

[0.3.0] - 2022-02-07

  • Add EmergencyPriceFeed.

[0.2.2] - 2021-12-28

  • BandPriceFeed will revert if price not updated yet.

[0.2.1] - 2021-12-24

  • Fix BandPriceFeed when the price feed haven't updated.

[0.2.0] - 2021-12-21

  • Add BandPriceFeed.

v0.3.3

18 Mar 07:08
Compare
Choose a tag to compare

[0.3.3] - 2022-03-18

Changed

  • Refactor ChainlinkPriceFeed, BandPriceFeed, and EmergencyPriceFeed with efficient TWAP calculation.
  • Change the license to GPL-3.0-or-later.

v0.3.2

04 Mar 10:23
3a4ae8c
Compare
Choose a tag to compare

[0.3.2] - 2022-03-04

  • Using cumulative twap in Chainlink price feed