Function: setBorrowerPaused(address borrower, bool pauseBorrow, bool pauseRepay)
Allows the caller who has access to this function to set borrower's states borrowPaused
and repayPaused
.
Inputs
borrower
Constraints: No constraints.
Impact: For this
borrower
address, theborrowPaused
andrepayPaused
states will be set.
pauseBorrow
Constraints: No constraints.
Impact: Change the
borrowPaused
state forborrower
. IfglobalBorrowPaused
is true, theborrow
action is unavailable forborrower
.
pauseRepay
Constraints: No constraints.
Impact: Change the
repayPaused
state forborrower
. IfrepayPaused
is true, therepay
action is unavailable forborrower
.
Branches and code coverage
Intended branches
If
borrowPaused
is true forborrower
, theborrow
function that is called byborrower
reverts.If
repayPaused
is true forborrower
, therepay
function that is called byborrower
reverts.
Negative behavior
Non-whitelisted caller
The borrower is not enabled