Interest Model
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.
Config
Key | Type | Description |
| CanonicalAddr | Address of contract owner that can update model configuration |
| Decimal256 | Minimum per-block interest rate applied to borrows |
| Decimal256 | Multiplier between utilization ratio and per-block borrow rate |
InstantiateMsg
Key | Type | Description |
| String | Address of contract owner that can update model parameters |
| Decimal256 | Minimum per-block interest rate applied to borrows |
| Decimal256 | Multiplier between utilization ratio and per-block borrow rate |
ExecuteMsg
UpdateConfig
UpdateConfig
Updates the configuration of the interest model contract. This message can only be issued by the owner.
Key | Type | Description |
| String | Address of new owner |
| Decimal256 | New minimum per-block borrow rate |
| Decimal256 | New borrow rate multiplier |
* = optional
QueryMsg
Config
Config
Gets the interest model contract configuration.
Key | Type | Description |
ConfigResponse
ConfigResponse
Key | Type | Description |
| String | Address of contract owner |
| Decimal256 | Minimum per-block borrow rate |
| Decimal256 | Borrow rate multiplier |
BorrowRate
BorrowRate
Gets the calculated per-block borrow rate, based on fed in market conditions.
Key | Type | Description |
| Uint256 | Stablecoin balance of |
| Decimal256 | Total amount of borrower liabilities |
| Decimal256 | Amount of |
BorrowRateResponse
BorrowRateResponse
Key | Type | Description |
| Decimal256 | Calculated per-block borrow rate |
Last updated