2020-05-29 16:45:37 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
2020-11-20 10:45:20 +00:00
|
|
|
pragma solidity 0.6.12;
|
2020-05-29 16:45:37 +00:00
|
|
|
|
|
|
|
/**
|
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-08-21 13:38:47 +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-08-21 13:38:47 +00:00
|
|
|
function setMarketBorrowRate(address asset, uint256 rate) external;
|
2020-05-29 16:45:37 +00:00
|
|
|
}
|