Releases: perpetual-protocol/perp-oracle-contract
Releases · perpetual-protocol/perp-oracle-contract
Release v0.6.7
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
toChainlinkPriceFeedV3.getPrice
. - Rename
ChainlinkPriceFeedV3.getCachedPrice
toChainlinkPriceFeedV3.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
[0.6.2] - 2023-03-01
observations
extends to1800
atCumulativeTwap.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
fromCumulativeTwap.sol
. Won't be calculated if so. Simply return latest price atCachedTwap.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
andCumulativeTwap.sol
to better support above fallbackable oracle
[0.5.1] - 2023-02-07
- Add
ChainlinkPriceFeedV1R1
Release v0.5.0
[0.5.0] - 2022-08-23
- Add
PriceFeedUpdater
Release v0.4.3
Add new interface IChainlinkPriceFeed
for ChainlinkPriceFeed and ChainlinkPriceFeedV2.
Release v0.4.2
Add ChainlinkPriceFeed.getRoundData()
Release v0.4.1
- Fix npm pack
Release v0.4.0
[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
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)
toIPriceFeed.sol
andEmergencyPriceFeed.sol
- Remove
ICachedTwap.sol
[0.3.3] - 2022-03-18
Changed
- Refactor
ChainlinkPriceFeed
,BandPriceFeed
, andEmergencyPriceFeed
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
.