Interest Model
Last updated
Last updated
The Interest Model contract is responsible for calculating the current borrow interest rate for stablecoin loans, based on the fed in market details. The interest rate is initially set to increase proportionally with market utilization, or the stablecoin borrow demand of the Anchor Money Market.
UpdateConfig
Updates the configuration of the interest model contract. This message can only be issued by the owner.
* = optional
Config
Gets the interest model contract configuration.
ConfigResponse
BorrowRate
Gets the calculated per-block borrow rate, based on fed in market conditions.
BorrowRateResponse
Key
Type
Description
owner
CanonicalAddr
Address of contract owner that can update model configuration
base_rate
Decimal256
Minimum per-block interest rate applied to borrows
interest_multiplier
Decimal256
Multiplier between utilization ratio and per-block borrow rate
Key
Type
Description
owner
String
Address of contract owner that can update model parameters
base_rate
Decimal256
Minimum per-block interest rate applied to borrows
interest_multiplier
Decimal256
Multiplier between utilization ratio and per-block borrow rate
Key
Type
Description
owner
*
String
Address of new owner
base_rate
*
Decimal256
New minimum per-block borrow rate
interest_multiplier
*
Decimal256
New borrow rate multiplier
Key
Type
Description
Key
Type
Description
owner
String
Address of contract owner
base_rate
Decimal256
Minimum per-block borrow rate
interest_multiplier
Decimal256
Borrow rate multiplier
Key
Type
Description
market_balance
Uint256
Stablecoin balance of Market
total_liabilities
Decimal256
Total amount of borrower liabilities
total_reserves
Decimal256
Amount of Market
contract reserves
Key
Type
Description
rate
Decimal256
Calculated per-block borrow rate