24 lines
642 B
Solidity
24 lines
642 B
Solidity
// SPDX-License-Identifier: AGPL-3.0
|
|
pragma solidity ^0.8.0;
|
|
|
|
/**
|
|
* @title IPriceOracle
|
|
* @author Aave
|
|
* @notice Defines the basic interface for a Price oracle.
|
|
*/
|
|
interface IPriceOracle {
|
|
/**
|
|
* @notice Returns the asset price in the base currency
|
|
* @param asset The address of the asset
|
|
* @return The price of the asset
|
|
*/
|
|
function getAssetPrice(address asset) external view returns (uint256);
|
|
|
|
/**
|
|
* @notice Set the price of the asset
|
|
* @param asset The address of the asset
|
|
* @param price The price of the asset
|
|
*/
|
|
function setAssetPrice(address asset, uint256 price) external;
|
|
}
|