> For the complete documentation index, see [llms.txt](https://docs.fluidnft.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fluidnft.org/technical-resources/developers/contract-reference/lending-rate-manager/ilendingratemanager.md).

# ILendingRateManager

{% tabs %}
{% tab title="ILendingRateManager.sol" %}

```solidity
// 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;
}
```

{% endtab %}
{% endtabs %}
