@venusprotocol/oracle 1.8.0-dev.8 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/README.md +2 -2
  2. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol/AggregatorInterface.dbg.json +1 -1
  3. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.dbg.json +1 -1
  4. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol/AggregatorV3Interface.dbg.json +1 -1
  5. package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.dbg.json +1 -1
  6. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
  7. package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
  8. package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
  9. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
  10. package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
  11. package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +1 -1
  12. package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +1 -1
  13. package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +1 -1
  14. package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +1 -1
  15. package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +1 -1
  16. package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +1 -1
  17. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
  18. package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
  19. package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
  20. package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
  21. package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
  22. package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
  23. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlManager.sol/AccessControlManager.dbg.json +1 -1
  24. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
  25. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
  26. package/artifacts/build-info/{489563fd29685114d62b7531ae2d0fc4.json → 4768d859e4273b2da172b1e8f225f9b3.json} +1 -1
  27. package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +1 -1
  28. package/artifacts/contracts/interfaces/FeedRegistryInterface.sol/FeedRegistryInterface.dbg.json +1 -1
  29. package/artifacts/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +1 -1
  30. package/artifacts/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
  31. package/artifacts/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +1 -1
  32. package/artifacts/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +1 -1
  33. package/artifacts/contracts/interfaces/PublicResolverInterface.sol/PublicResolverInterface.dbg.json +1 -1
  34. package/artifacts/contracts/interfaces/PythInterface.sol/AbstractPyth.dbg.json +1 -1
  35. package/artifacts/contracts/interfaces/PythInterface.sol/IPyth.dbg.json +1 -1
  36. package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.dbg.json +1 -1
  37. package/artifacts/contracts/interfaces/SIDRegistryInterface.sol/SIDRegistryInterface.dbg.json +1 -1
  38. package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +1 -1
  39. package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.dbg.json +1 -1
  40. package/artifacts/contracts/libraries/PancakeLibrary.sol/IPancakePair.dbg.json +1 -1
  41. package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.dbg.json +1 -1
  42. package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.dbg.json +1 -1
  43. package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.json +2 -2
  44. package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.dbg.json +1 -1
  45. package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.dbg.json +1 -1
  46. package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.dbg.json +1 -1
  47. package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.dbg.json +1 -1
  48. package/artifacts/contracts/oracles/mocks/MockBinanceFeedRegistry.sol/MockBinanceFeedRegistry.dbg.json +1 -1
  49. package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.dbg.json +1 -1
  50. package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.dbg.json +1 -1
  51. package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.dbg.json +1 -1
  52. package/artifacts/contracts/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.dbg.json +1 -1
  53. package/artifacts/contracts/test/AccessControlManager.sol/AccessControlManagerScenario.dbg.json +1 -1
  54. package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.dbg.json +1 -1
  55. package/artifacts/contracts/test/MockPyth.sol/MockPyth.dbg.json +1 -1
  56. package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.dbg.json +1 -1
  57. package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.dbg.json +1 -1
  58. package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.dbg.json +1 -1
  59. package/artifacts/contracts/test/PancakePairHarness.sol/Math.dbg.json +1 -1
  60. package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.dbg.json +1 -1
  61. package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.dbg.json +1 -1
  62. package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.dbg.json +1 -1
  63. package/contracts/oracles/BinanceOracle.sol +1 -2
  64. package/deployments/ethereum/.chainId +1 -0
  65. package/deployments/ethereum/BoundValidator.json +582 -0
  66. package/deployments/ethereum/BoundValidator_Implementation.json +646 -0
  67. package/deployments/ethereum/BoundValidator_Proxy.json +251 -0
  68. package/deployments/ethereum/ChainlinkOracle.json +647 -0
  69. package/deployments/ethereum/ChainlinkOracle_Implementation.json +738 -0
  70. package/deployments/ethereum/ChainlinkOracle_Proxy.json +251 -0
  71. package/deployments/ethereum/DefaultProxyAdmin.json +257 -0
  72. package/deployments/ethereum/RedStoneOracle.json +647 -0
  73. package/deployments/ethereum/RedStoneOracle_Implementation.json +738 -0
  74. package/deployments/ethereum/RedStoneOracle_Proxy.json +251 -0
  75. package/deployments/ethereum/ResilientOracle.json +873 -0
  76. package/deployments/ethereum/ResilientOracle_Implementation.json +1102 -0
  77. package/deployments/ethereum/ResilientOracle_Proxy.json +251 -0
  78. package/deployments/ethereum/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +78 -0
  79. package/deployments/ethereum/solcInputs/61a63fbc062c2591c6768138f59373e1.json +180 -0
  80. package/deployments/ethereum.json +4761 -1
  81. package/deployments/ethereum_addresses.json +15 -1
  82. package/deployments/opbnbmainnet.json +5 -0
  83. package/deployments/opbnbmainnet_addresses.json +5 -0
  84. package/deployments/opbnbtestnet/BinanceOracle_Implementation.json +2 -345
  85. package/deployments/opbnbtestnet.json +3725 -0
  86. package/deployments/opbnbtestnet_addresses.json +16 -0
  87. package/dist/deploy/1-deploy-oracles.d.ts.map +1 -1
  88. package/dist/deploy/1-deploy-oracles.js +7 -1
  89. package/dist/deploy/1-deploy-oracles.js.map +1 -1
  90. package/dist/deploy/2-deploy-redstone-oracle.d.ts.map +1 -1
  91. package/dist/deploy/2-deploy-redstone-oracle.js +3 -1
  92. package/dist/deploy/2-deploy-redstone-oracle.js.map +1 -1
  93. package/dist/hardhat.config.d.ts.map +1 -1
  94. package/dist/hardhat.config.js +7 -1
  95. package/dist/hardhat.config.js.map +1 -1
  96. package/dist/helpers/deploymentConfig.d.ts.map +1 -1
  97. package/dist/helpers/deploymentConfig.js +80 -3
  98. package/dist/helpers/deploymentConfig.js.map +1 -1
  99. package/dist/typechain-types/factories/contracts/oracles/BinanceOracle__factory.d.ts +1 -1
  100. package/dist/typechain-types/factories/contracts/oracles/BinanceOracle__factory.d.ts.map +1 -1
  101. package/dist/typechain-types/factories/contracts/oracles/BinanceOracle__factory.js +1 -1
  102. package/dist/typechain-types/factories/contracts/oracles/BinanceOracle__factory.js.map +1 -1
  103. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@ Resilient Price Feeds is a set of smart contracts that uses multiple oracles and
6
6
 
7
7
  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.
8
8
 
9
- 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, Pyth, Binance Oracle and TWAP (Time-Weighted Average Price) oracles. TWAP uses PancakeSwap as the on-chain price source.
9
+ 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.
10
10
 
11
11
  ## Details
12
12
 
@@ -21,7 +21,7 @@ anchorRatio = anchorPrice/reporterPrice
21
21
  isValid = anchorRatio <= upperBoundAnchorRatio && anchorRatio >= lowerBoundAnchorRatio
22
22
  ```
23
23
 
24
- The default configuration uses Chainlink as the main oracle, TWAP or Pyth oracle as pivot oracle depending on which supports the given market and Binance oracle as the fallback oracle. For some markets we may use Pyth as the main oracle if the token price is not supported by Chainlink or Binance oracles.
24
+ 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.
25
25
 
26
26
  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.
27
27
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/489563fd29685114d62b7531ae2d0fc4.json"
3
+ "buildInfo": "../../../../../build-info/4768d859e4273b2da172b1e8f225f9b3.json"
4
4
  }