mirror of
https://github.com/Instadapp/dsa-resolvers-deprecated.git
synced 2024-07-29 22:38:16 +00:00
Update compound oracle
This commit is contained in:
parent
e7be2923db
commit
e0ba523772
|
@ -29,6 +29,7 @@ interface ComptrollerLensInterface {
|
||||||
function compAccrued(address) external view returns (uint);
|
function compAccrued(address) external view returns (uint);
|
||||||
function borrowCaps(address) external view returns (uint);
|
function borrowCaps(address) external view returns (uint);
|
||||||
function borrowGuardianPaused(address) external view returns (bool);
|
function borrowGuardianPaused(address) external view returns (bool);
|
||||||
|
function oracle() external view returns (address);
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CompReadInterface {
|
interface CompReadInterface {
|
||||||
|
@ -83,8 +84,8 @@ contract Helpers is DSMath {
|
||||||
/**
|
/**
|
||||||
* @dev get Compound Open Feed Oracle Address
|
* @dev get Compound Open Feed Oracle Address
|
||||||
*/
|
*/
|
||||||
function getOracleAddress() public pure returns (address) {
|
function getOracleAddress() public view returns (address) {
|
||||||
return 0x9B8Eb8b3d6e2e0Db36F41455185FEF7049a35CaE;
|
return getComptroller().oracle();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user