Skip to content

Commit

Permalink
Merge pull request #170 from VenusProtocol/develop
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
chechu authored Feb 22, 2024
2 parents bd7878c + 1db0ce5 commit 4ba1e9e
Show file tree
Hide file tree
Showing 57 changed files with 10,988 additions and 7,248 deletions.
54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,57 @@
## [1.10.0-dev.8](https://github.com/VenusProtocol/oracle/compare/v1.10.0-dev.7...v1.10.0-dev.8) (2024-02-22)


### Bug Fixes

* chainlink oracle deployment might not be available on some networks ([4868926](https://github.com/VenusProtocol/oracle/commit/4868926be37b57600301587bad4b81bfcc9c41d0))

## [1.10.0-dev.7](https://github.com/VenusProtocol/oracle/compare/v1.10.0-dev.6...v1.10.0-dev.7) (2024-02-22)


### Features

* updating deployment files ([a322225](https://github.com/VenusProtocol/oracle/commit/a322225092f349e315dbfe483dd679e6bf698125))
* updating deployment files ([3e9a5ce](https://github.com/VenusProtocol/oracle/commit/3e9a5cea393ec971271a348896f8818652839593))


### Bug Fixes

* deploy script ([0a17889](https://github.com/VenusProtocol/oracle/commit/0a17889c6b5c9d43fc119e5ca4514111628d1a81))

## [1.10.0-dev.6](https://github.com/VenusProtocol/oracle/compare/v1.10.0-dev.5...v1.10.0-dev.6) (2024-02-21)

## [1.10.0-dev.5](https://github.com/VenusProtocol/oracle/compare/v1.10.0-dev.4...v1.10.0-dev.5) (2024-02-20)


### Bug Fixes

* remove twap oracle ([85b1021](https://github.com/VenusProtocol/oracle/commit/85b1021928d1faaacf8d9263cf6c3916e1142f43))

## [1.10.0-dev.4](https://github.com/VenusProtocol/oracle/compare/v1.10.0-dev.3...v1.10.0-dev.4) (2024-02-07)

## [1.10.0-dev.3](https://github.com/VenusProtocol/oracle/compare/v1.10.0-dev.2...v1.10.0-dev.3) (2024-02-05)

## [1.10.0-dev.2](https://github.com/VenusProtocol/oracle/compare/v1.10.0-dev.1...v1.10.0-dev.2) (2024-02-01)


### Features

* add wstETH oracle deployment on Ethereum ([505c721](https://github.com/VenusProtocol/oracle/commit/505c721d43f4dd02c2ae987dd3412a883b7f9bbb))
* updating deployment files ([0acebd5](https://github.com/VenusProtocol/oracle/commit/0acebd566b0c0bab97bfd37b81ec561a3a493d4c))

## [1.10.0-dev.1](https://github.com/VenusProtocol/oracle/compare/v1.9.0...v1.10.0-dev.1) (2024-01-26)


### Features

* add oracle deployments for opbnbmainnet ([f6655e7](https://github.com/VenusProtocol/oracle/commit/f6655e744b64236c65e1099bab1caf237d56eb16))
* updating deployment files ([5d813b2](https://github.com/VenusProtocol/oracle/commit/5d813b2f9fdd82418f2f888a2f19e2822268a631))


### Bug Fixes

* hardcoded gas input ([ef80913](https://github.com/VenusProtocol/oracle/commit/ef809133e3cef279495435c6c7fa4062cf41de41))

## [1.9.0](https://github.com/VenusProtocol/oracle/compare/v1.8.0...v1.9.0) (2024-01-23)


Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Resilient Price Feeds is a set of smart contracts that uses multiple oracles and

DeFi protocols are vulnerable to incorrectly reported prices which can lead to lost money. A price oracle can be manipulated,fail, or suffer other attacks depending on the type of price oracle. It creates a single point of failure, opening attack vectors to the protocol if not mitigated.

The Resilient Price Feeds uses multiple oracle sources and fallback mechanisms to return accurate prices and protect from oracle failures. Currently, it includes integrations with Chainlink, RedStone, Pyth, Binance Oracle and TWAP (Time-Weighted Average Price) oracles. TWAP uses PancakeSwap as the on-chain price source.
The Resilient Price Feeds uses multiple oracle sources and fallback mechanisms to return accurate prices and protect from oracle failures. Currently, it includes integrations with Chainlink, RedStone, Pyth and Binance Oracle oracles.

## Details

Expand All @@ -21,7 +21,7 @@ anchorRatio = anchorPrice/reporterPrice
isValid = anchorRatio <= upperBoundAnchorRatio && anchorRatio >= lowerBoundAnchorRatio
```

The default configuration uses Chainlink as the main oracle, TWAP, RedStone or Pyth oracle as the pivot oracle depending on which supports the given market and Binance oracle as the fallback oracle. For some markets we may use RedStone or Pyth as the main oracle if the token price is not supported by Chainlink or Binance oracles.
The default configuration uses Chainlink as the main oracle, RedStone or Pyth oracle as the pivot oracle depending on which supports the given market and Binance oracle as the fallback oracle. For some markets we may use RedStone or Pyth as the main oracle if the token price is not supported by Chainlink or Binance oracles.

When fetching an oracle price, for the price to be valid it must be positive and not stagnant. If the price is invalid or stagnant it is ignored and a fallback oracle is used.

Expand Down
Binary file added audits/090_wstETHOracle_certik_20240126.pdf
Binary file not shown.
Binary file added audits/093_wstETHOracle_quantstamp_20240220.pdf
Binary file not shown.
Binary file added audits/097_twap_hashex_20240201.pdf
Binary file not shown.
68 changes: 0 additions & 68 deletions contracts/libraries/PancakeLibrary.sol

This file was deleted.

Loading

0 comments on commit 4ba1e9e

Please sign in to comment.