-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Vault manager with permissioned liquidations (#208)
* first batch of test done * update final hash of vaultManager implementation * changing whitelist * feat: add tests for whitelisted vault * vaultManager for IB01 * fix: comments for liquidations * add USDC collateral * feat: add debt ceiling vault * feat: vaultManager deployment --------- Co-authored-by: gs8nrv <[email protected]>
- Loading branch information
1 parent
df978a3
commit b8e1226
Showing
35 changed files
with
3,811 additions
and
2,910 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -48,7 +48,6 @@ bin | |
|
||
# temporary delete | ||
typechain/cacheIndex.ts | ||
contracts/mock/MockEulerReactor.sol | ||
|
||
# foundry | ||
/out | ||
|
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 was deleted.
Oops, something went wrong.
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
26 changes: 26 additions & 0 deletions
26
contracts/oracle/implementations/mainnet/EUR/OracleIB01EURChainlink.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,26 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity ^0.8.12; | ||
|
||
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; | ||
|
||
import "../../../BaseOracleChainlinkMultiTwoFeeds.sol"; | ||
|
||
/// @title OracleIB01EURChainlink | ||
/// @author Angle Labs, Inc. | ||
/// @notice Gives the price of IB01 in Euro in base 18 | ||
contract OracleIB01EURChainlink is BaseOracleChainlinkMultiTwoFeeds { | ||
string public constant DESCRIPTION = "IB01/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[](2); | ||
// Oracle IB01/USD | ||
_circuitChainlink[0] = AggregatorV3Interface(0x788D911ae7c95121A89A0f0306db65D87422E1de); | ||
// Oracle EUR/USD | ||
_circuitChainlink[1] = AggregatorV3Interface(0xb49f677943BC038e9857d61E7d053CaA2C1734C1); | ||
return _circuitChainlink; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
contracts/oracle/implementations/mainnet/EUR/OracleUSDCEURChainlink.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,26 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity ^0.8.12; | ||
|
||
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; | ||
|
||
import "../../../BaseOracleChainlinkMultiTwoFeeds.sol"; | ||
|
||
/// @title OracleUSDCEURChainlink | ||
/// @author Angle Labs, Inc. | ||
/// @notice Gives the price of USDC in Euro in base 18 | ||
contract OracleUSDCEURChainlink is BaseOracleChainlinkMultiTwoFeeds { | ||
string public constant DESCRIPTION = "USDC/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[](2); | ||
// Oracle USDC/USD | ||
_circuitChainlink[0] = AggregatorV3Interface(0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6); | ||
// Oracle EUR/USD | ||
_circuitChainlink[1] = AggregatorV3Interface(0xb49f677943BC038e9857d61E7d053CaA2C1734C1); | ||
return _circuitChainlink; | ||
} | ||
} |
Oops, something went wrong.