Function: setBorrowerDebtCeiling(address borrower, uint256 newDebtCeiling)
Allows the caller who has access to this function to update debtCeiling for borrower. This also initiates the update process of borrower's interest rate as a result of changing the current borrower's utilization ratio.
Inputs
borrowerConstraints: If
_borrowersSetdoes not containborrower, the_getBorrowerConfigfunction reverts.Impact: The address of existing borrower.
newDebtCeilingConstraints: No constraints.
Impact: The debt limit — if the debt balance of the borrower is more than
debtCeiling, the_availableToBorrowreturns zero. Also, it affects the borrower's utilization ratio.
Branches and code coverage
Intended branches
New borrower's interest rate was calculated properly.
Borrower's
debtCeilingwas updated properly.
Negative behavior
Non-whitelisted caller
The borrower has not been added before.