Assessment reports>Prisma Finance>Threat Models>getPendingCollAndDebtRewards

Function: getPendingCollAndDebtRewards(address _borrower)

Get the borrower's pending accumulated collateral and debt rewards earned by their stake.

Inputs

  • _borrower

    • Control: Fully controlled.

    • Constraints: No constraints.

    • Impact: The address of the trove owner.

Branches and code coverage (including function calls)

Intended branches

  • If L_collateral and L_debt are greater than snapshot values, calculate the pending collateral and debt rewards.

  • Return 0 if L_collateral and L_debt are unchanged.

  • Return 0 if trove is inactive.

Zellic © 2025Back to top ↑