Function: setGlobalPaused(bool _pauseBorrow, bool _pauseRepay)
Allows the caller who has access to this function to set states of globalBorrowPaused
and globalRepayPaused
.
Inputs
_pauseBorrow
Constraints: No constraints.
Impact: Change
globalBorrowPaused
state. IfglobalBorrowPaused
is true, theborrow
action is unavailable.
_pauseRepay
Constraints: No constraints.
Impact: Change
globalRepayPaused
state. IfglobalRepayPaused
is true, therepay
action is unavailable.
Branches and code coverage
Intended branches
If
globalRepayPaused
is true, theborrow
function reverts.If
globalRepayPaused
is true, therepay
function reverts.
Negative behavior
Non-whitelisted caller