Function: setGlobalPaused(bool _pauseBorrow, bool _pauseRepay)
Allows the caller who has access to this function to set states of globalBorrowPaused and globalRepayPaused.
Inputs
_pauseBorrowConstraints: No constraints.
Impact: Change
globalBorrowPausedstate. IfglobalBorrowPausedis true, theborrowaction is unavailable.
_pauseRepayConstraints: No constraints.
Impact: Change
globalRepayPausedstate. IfglobalRepayPausedis true, therepayaction is unavailable.
Branches and code coverage
Intended branches
If
globalRepayPausedis true, theborrowfunction reverts.If
globalRepayPausedis true, therepayfunction reverts.
Negative behavior
Non-whitelisted caller