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
borrowerConstraints: No constraints.
Impact: For this
borroweraddress, theborrowPausedandrepayPausedstates will be set.
pauseBorrowConstraints: No constraints.
Impact: Change the
borrowPausedstate forborrower. IfglobalBorrowPausedis true, theborrowaction is unavailable forborrower.
pauseRepayConstraints: No constraints.
Impact: Change the
repayPausedstate forborrower. IfrepayPausedis true, therepayaction is unavailable forborrower.
Branches and code coverage
Intended branches
If
borrowPausedis true forborrower, theborrowfunction that is called byborrowerreverts.If
repayPausedis true forborrower, therepayfunction that is called byborrowerreverts.
Negative behavior
Non-whitelisted caller
The borrower is not enabled