2020-05-29 16:45:37 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
|
|
|
pragma solidity ^0.6.8;
|
|
|
|
|
|
|
|
/**
|
2020-07-13 08:54:08 +00:00
|
|
|
* @title ILendingRateOracle interface
|
|
|
|
* @notice Interface for the Aave borrow rate oracle. Provides the average market borrow rate to be used as a base for the stable borrow rate calculations
|
|
|
|
**/
|
2020-05-29 16:45:37 +00:00
|
|
|
|
|
|
|
interface ILendingRateOracle {
|
2020-07-13 08:54:08 +00:00
|
|
|
/**
|
2020-05-29 16:45:37 +00:00
|
|
|
@dev returns the market borrow rate in ray
|
|
|
|
**/
|
2020-07-13 08:54:08 +00:00
|
|
|
function getMarketBorrowRate(address _asset) external view returns (uint256);
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
/**
|
2020-05-29 16:45:37 +00:00
|
|
|
@dev sets the market borrow rate. Rate value must be in ray
|
|
|
|
**/
|
2020-07-13 08:54:08 +00:00
|
|
|
function setMarketBorrowRate(address _asset, uint256 _rate) external;
|
2020-05-29 16:45:37 +00:00
|
|
|
}
|