Function: getPendingCollAndDebtRewards(address _borrower)
Get the borrower's pending accumulated collateral and debt rewards earned by their stake.
Inputs
_borrowerControl: Fully controlled.
Constraints: No constraints.
Impact: The address of the trove owner.
Branches and code coverage (including function calls)
Intended branches
If
L_collateralandL_debtare greater than snapshot values, calculate the pending collateral and debt rewards.Return 0 if
L_collateralandL_debtare unchanged.Return 0 if trove is inactive.