Assessment reports>Sturdy>Threat Model>removeLender

Function: removeLender(address _lender)

This removes lender from list.

Inputs

  • _lender

    • Control: Full.

    • Constraints: Needs to be a valid address.

    • Impact: The lender to manage debt.

Branches and code coverage (including function calls)

Intended branches

  • Owner can successfully remove lender.

  • Owner or nonowner can successfully remove lender with a strategy with its aggregator.strategies(_lender).activation being equal to zero.

Negative behavior

  • Function reverts if invoked by nonowner.

Function call analysis

  • rootFunction -> aggregator.strategies(address)

    • What is controllable? _lender

    • If return value controllable, how is it used and how can it go wrong? It is used to determine whether the strategy for _lender is revoked or not.

    • What happens if it reverts, reenters, or does other unusual control flow? N/A.

Zellic © 2025Back to top ↑