Assessment reports>Sturdy>Threat Model>setPairToLender

Function: setPairToLender(address _pair, address _lender)

This sets the lender's external pool address.

Inputs

  • _pair

    • Control: Full.

    • Constraints: Needs to be a valid address.

    • Impact: The external pool address.

  • _lender

    • Control: Full.

    • Constraints: Needs to be a valid address.

    • Impact: The lender address to manage debt.

Branches and code coverage (including function calls)

Intended branches

  • Admin successfully sets the lender's external pool address.

Negative behavior

  • Function reverts if invoked by non-admin.

Zellic © 2025Back to top ↑