-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: HIGH collateral potential deployment (#215)
* first batch of test done * update final hash of vaultManager implementation * [WIP] feat: deployment for HIGH * fix: HIGH oracle value * fix: deployment for HIGH * fix: layerzero test * feat: bhigh deployment --------- Co-authored-by: gs8nrv <[email protected]>
- Loading branch information
1 parent
bd13bf5
commit 2fb38de
Showing
15 changed files
with
1,122 additions
and
47 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
contracts/oracle/implementations/mainnet/EUR/OracleHIGHEURChainlink.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity ^0.8.12; | ||
|
||
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; | ||
|
||
import "../../../BaseOracleChainlinkMultiTwoFeeds.sol"; | ||
|
||
/// @title OracleHIGHEURChainlink | ||
/// @author Angle Labs, Inc. | ||
/// @notice Gives the price of HIGH in Euro in base 18 | ||
contract OracleHIGHEURChainlink is BaseOracleChainlinkMultiTwoFeeds { | ||
string public constant DESCRIPTION = "HIGH/EUR Oracle"; | ||
|
||
constructor(uint32 _stalePeriod, address _treasury) BaseOracleChainlinkMultiTwoFeeds(_stalePeriod, _treasury) {} | ||
|
||
/// @inheritdoc IOracle | ||
function circuitChainlink() public pure override returns (AggregatorV3Interface[] memory) { | ||
AggregatorV3Interface[] memory _circuitChainlink = new AggregatorV3Interface[](1); | ||
// Oracle HIGH/EUR | ||
_circuitChainlink[0] = AggregatorV3Interface(0x9E8E794ad6Ecdb6d5c7eaBE059D30E907F58859b); | ||
return _circuitChainlink; | ||
} | ||
|
||
/// @inheritdoc BaseOracleChainlinkMultiTwoFeeds | ||
function read() external view override returns (uint256 quoteAmount) { | ||
quoteAmount = _readChainlinkFeed(_getQuoteAmount(), circuitChainlink()[0], 1, 8); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.