mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
20 lines
587 B
Solidity
20 lines
587 B
Solidity
// SPDX-License-Identifier: agpl-3.0
|
|
pragma solidity 0.6.12;
|
|
|
|
contract OracleAnchor {
|
|
event AssetSourceUpdated(address indexed token, address indexed source);
|
|
event OracleSystemMigrated();
|
|
|
|
constructor(
|
|
address[] memory assets, // token assets that are complex
|
|
address[] memory sources // custom oracles for complex tokens
|
|
) public {
|
|
require(assets.length == sources.length, 'INCONSISTENT_AAVEORACLE_PARAMS_LENGTH');
|
|
emit OracleSystemMigrated();
|
|
|
|
for (uint256 i = 0; i < assets.length; i++) {
|
|
emit AssetSourceUpdated(assets[i], sources[i]);
|
|
}
|
|
}
|
|
}
|