Inputs to computeEntireDebt: the draw, fee, rate, and elapsed time.

interface ComputeEntireDebtParams {
    draw: bigint;
    elapsedSeconds: number | bigint;
    fee: bigint;
    rate: number;
}

Properties

draw: bigint

Requested draw (MUSD the borrower receives).

elapsedSeconds: number | bigint

Seconds since the principal was last touched (0 = at open).

fee: bigint

Borrowing fee for the draw (caller reads getBorrowingFee; governable).

rate: number

The Trove's interest rate, in basis points.