Function: setBorrowerInterestRateModel(address borrower, address interestRateModel)
Allows the caller who has access to this function to update the interest rate model contract address for the borrower.
Inputs
borrowerConstraints: If
_borrowersSetdoes not containborrower, the_getBorrowerConfigfunction reverts.Impact: The address of the existing borrower.
interestRateModelImpact: The address of the interest rate model — the
calculateInterestRatefunction of theinterestRateModelcontract returns the latest interest rate calculated using the current utilization ratio.
Branches and code coverage
Intended branches
New borrower's interest rate was calculated according to the new model.
Negative behavior
Non-whitelisted caller
The borrower has not been added before.
The
interestRateModelis zero address.