aave-protocol-v2/contracts/interfaces/IPriceOracle.sol

18 lines
444 B
Solidity
Raw Normal View History

// SPDX-License-Identifier: agpl-3.0
2020-11-20 10:41:58 +00:00
pragma solidity ^0.6.12;
/************
@title IPriceOracle interface
@notice Interface for the Aave price oracle.*/
interface IPriceOracle {
2020-07-13 08:54:08 +00:00
/***********
@dev returns the asset price in ETH
*/
function getAssetPrice(address asset) external view returns (uint256);
2020-07-13 08:54:08 +00:00
/***********
@dev sets the asset price, in wei
*/
function setAssetPrice(address asset, uint256 price) external;
}