Assessment reports>Sturdy>Threat Model>sortLendersWithAPR

Function: sortLendersWithAPR()

This sorts the registered lenders based on the APR value and cache.

Branches and code coverage (including function calls)

Intended branches

  • Owner successfully sorts the lenders.

Negative behavior

  • Function reverts if invoked by nonowner.

Function call analysis

  • rootFunction -> getExpectedApr(address, int256)

    • What is controllable? N/A.

    • If return value controllable, how is it used and how can it go wrong? N/A.

    • What happens if it reverts, reenters, or does other unusual control flow? Will revert if an oracle is not set.

Zellic © 2025Back to top ↑