Lending Rate Manager

The LendingRateManager contract is used to manage fixed-term loan stable borrow rates and loan-to-value ratios for given loan durations.

Methods

setMarketBorrowRate()

function setMarketBorrowRate(uint256 reserveId, uint256 rate)​

Sets the fixed-term stable borrow rate for a given reserve.

Parameter Name
Type
Description

reserveId

uint256

id of the target reserve

rate

uint256

interest rate APR in ray

setMarketDurationLoanToValue()

function setMarketDurationLoanToValue(uint256 reserveId, uint256 duration, uint256 ltv)​

Sets the LTV for a given reserve, for a given duration.

Parameter Name
Type
Description

reserveId

uint256

id of the target reserve

duration

uint256

duration of the loan

ltv

uint256

loan-to-value percentage in 1e4, e.g. 1000 == 10%

View Methods

getMarketBorrowRate()​

function getMarketBorrowRate(uint256 reserveId)

Gets the fixed-term stable borrow rate for a given reserve.

Parameter Name
Type
Description

reserveId

uint256

id of the target reserve

Returns

Parameter Name
Type
Description

rate

uint256

interest rate APR in ray

getMarketDurationLoanToValue()

function vetMarketDurationLoanToValue(uint256 reserveId, uint256 duration)​

Gets the LTV for a given reserve, for a given duration.

Parameter Name
Type
Description

reserveId

uint256

id of the target reserve

duration

uint256

duration of the loan

Returns

Parameter Name
Type
Description

ltv

uint256

loan-to-value percentage in 1e4, e.g. 1000 == 10%

ABI

Lending Rate Manager ABI

Last updated