ILendingRateManager

// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.16;

/**
 * @title ILendingRateManager interface
 * @notice Interface for the FluidNFT borrow rate manager. 
 * Provides the average market borrow rate to be used as a base for the stable borrow rate calculations
 **/

interface ILendingRateManager {
    /**
     @dev returns the market borrow rate in ray
     **/
    function getMarketBorrowRate(uint256 reserveId) external view returns (uint256);

    /**
     @dev sets the market borrow rate. Rate value must be in ray
     **/
    function setMarketBorrowRate(uint256 reserveId, uint256 rate) external;

    /**
     * @dev Sets the borrow rate of the reserve
     **/
    function getMarketDurationLoanToValue(uint256 _reserveId, uint256 _duration) external view returns (uint256);

    /**
     * @dev Sets the borrow rate of the reserve
     **/
    function setMarketDurationLoanToValue(uint256 _reserveId, uint256 _duration, uint256 _ltv) external;
}

Last updated