mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
contract anchor oracle
This commit is contained in:
parent
554a2ed7ca
commit
4f9bf92679
22
contracts/misc/OracleAnchor.sol
Normal file
22
contracts/misc/OracleAnchor.sol
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
pragma solidity 0.6.12;
|
||||||
|
|
||||||
|
import {Ownable} from '../dependencies/openzeppelin/contracts/Ownable.sol';
|
||||||
|
|
||||||
|
contract AaveOracle is Ownable {
|
||||||
|
event AssetSourceUpdated(address indexed asset, address indexed source);
|
||||||
|
event OracleSystemMigrated();
|
||||||
|
|
||||||
|
constructor() public {
|
||||||
|
emit OracleSystemMigrated();
|
||||||
|
}
|
||||||
|
|
||||||
|
function setAssetSources(address[] calldata assets, address[] calldata sources)
|
||||||
|
external
|
||||||
|
onlyOwner
|
||||||
|
{
|
||||||
|
require(assets.length == sources.length, 'INCONSISTENT_PARAMS_LENGTH');
|
||||||
|
for (uint256 i = 0; i < assets.length; i++) {
|
||||||
|
emit AssetSourceUpdated(assets[i], sources[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user