Interest accrual

Interest accrual

Check interest accrual

function getAmountOwed(
    uint256 _loanId,
    uint256 _paybackTime
) public view returns (uint256);

Flow

  • Computes the amount owed at a hypothetical repayment time:

    • loanDuration = _paybackTime - loan.startTime.

    • Returns _calculateAmountOwed(loan.loanAmount, loan.rate, loanDuration).

Last updated