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
andL_debt
are greater than snapshot values, calculate the pending collateral and debt rewards.Return 0 if
L_collateral
andL_debt
are unchanged.Return 0 if trove is inactive.