Assessment reports>Origami Finance>Threat Model>setBorrowerPaused

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, the borrowPaused and repayPaused states will be set.

  • pauseBorrow

    • Constraints: No constraints.

    • Impact: Change the borrowPaused state for borrower. If globalBorrowPaused is true, the borrow action is unavailable for borrower.

  • pauseRepay

    • Constraints: No constraints.

    • Impact: Change the repayPaused state for borrower. If repayPaused is true, the repay action is unavailable for borrower.

Branches and code coverage

Intended branches

  • If borrowPaused is true for borrower, the borrow function that is called by borrower reverts.

  • If repayPaused is true for borrower, the repay function that is called by borrower reverts.

Negative behavior

  • Non-whitelisted caller

  • The borrower is not enabled

Zellic © 2025Back to top ↑