Assessment reports>Origami Finance>Threat Model>setGlobalPaused

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. If globalBorrowPaused is true, the borrow action is unavailable.

  • _pauseRepay

    • Constraints: No constraints.

    • Impact: Change globalRepayPaused state. If globalRepayPaused is true, the repay action is unavailable.

Branches and code coverage

Intended branches

  • If globalRepayPaused is true, the borrow function reverts.

  • If globalRepayPaused is true, the repay function reverts.

Negative behavior

  • Non-whitelisted caller

Zellic © 2025Back to top ↑