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

20 lines
591 B
Solidity
Raw Normal View History

// 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
**/
interface ILendingRateOracle {
2020-07-13 08:54:08 +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-07-13 08:54:08 +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;
}