BaseJumpRateModelV2
Overview
License: MIT
Author: Compound (modified by Dharma Labs, refactored by Arr00)
Version 2 modifies Version 1 by enabling updateable parameters.
Events info
NewInterestParams
Emitted when the interest rate model's parameters are updated.
Parameters:
NewOwner
Emitted when the owner of the contract is updated.
Parameters:
Constants info
blocksPerYear (0xa385fb96)
The approximate number of blocks per year that is assumed by the interest rate model
State variables info
owner (0x8da5cb5b)
The address of the owner, i.e. the Timelock contract, which can update parameters directly
multiplierPerBlock (0x8726bb89)
The multiplier of utilization rate that gives the slope of the interest rate
baseRatePerBlock (0xf14039de)
The base interest rate which is the y-intercept when utilization rate is 0
jumpMultiplierPerBlock (0xb9f9850a)
The multiplierPerBlock after hitting a specified utilization point
kink (0xfd2da339)
The utilization point at which the jump multiplier is applied
Functions info
constructor
Constructs an interest rate model.
Parameters:
chageOwner (0x9988642f)
Changes the owner address (only callable by previous owner).
Parameters:
updateJumpRateModel (0x2037f3e7)
Updates the parameters of the interest rate model (only callable by owner, i.e. Timelock).
Parameters:
utilizationRate (0x6e71e2d8)
Calculates the utilization rate of the market: borrows / (cash + borrows - reserves)
.
Parameters:
Return values:
getSupplyRate (0xb8168816)
Calculates the current supply rate per block.
Parameters:
Return values:
Last updated