Skip to content

IRMRiskSteward

Contract that can update interest rate models updates received from RiskStewardReceiver.

This page follows IRMRiskSteward.sol at v2.15.0. On BNB mainnet at block 118369568, proxy 0x8acaBc42Bb98E2e2b091902a7E23f60CcB730aaa used implementation 0x0548A031574221e432f21a96bd7D24C0463c9eA5, matching the tagged artifact. Destination-mainnet deployment must be verified separately; the stable tag contains destination instances on testnets.

The update type for interest rate model

string INTEREST_RATE_MODEL

The update type key for interest rate model (keccak256 hash of INTEREST_RATE_MODEL)

bytes32 INTEREST_RATE_MODEL_KEY

Address of the BNB Core Pool Comptroller.

contract ICorePoolComptroller CORE_POOL_COMPTROLLER

Address of the RiskStewardReceiver used to validate incoming updates

contract IRiskStewardReceiver RISK_STEWARD_RECEIVER

Sets the immutable CORE_POOL_COMPTROLLER and RISK_STEWARD_RECEIVER addresses and disables initializers

constructor(address corePoolComptroller_, address riskStewardReceiver_) public
NameTypeDescription
corePoolComptroller_addressThe address of the Core Pool Comptroller
riskStewardReceiver_addressThe address of the RiskStewardReceiver
  • Throws ZeroAddressNotAllowed if any of the addresses are zero

Initializes the contract as ownable and access controlled.

function initialize(address accessControlManager_) external
NameTypeDescription
accessControlManager_addressThe address of the access control manager

Applies an interest rate model update from the RiskStewardReceiver. Directly updates the market interest rate model on the vToken.

function applyUpdate(struct RiskParameterUpdate update) external
NameTypeDescription
updatestruct RiskParameterUpdateRiskParameterUpdate update to apply
  • Emits InterestRateModelUpdated with the updateId, market and new IRM address
  • Only callable by the RiskStewardReceiver
  • Throws OnlyRiskStewardReceiver if the sender is not the RiskStewardReceiver
  • Throws UnsupportedUpdateType if the update type is not supported

Checks if an update is safe for direct execution (no timelock required)

function isSafeForDirectExecution(struct RiskParameterUpdate update) external view returns (bool)
NameTypeDescription
updatestruct RiskParameterUpdateThe update to check
NameTypeDescription
[0]boolTrue if update is safe for direct execution, false if timelock is required
  • Throws UnsupportedUpdateType if the update type is not supported
  • Throws RedundantValue if the new IRM address is equal to the current IRM address