Get debt
Get debt

Exactly · Reads onchain state

Reads how much an account owes an Exactly market across its floating pool and every fixed-rate pool. previewDebt adds each fixed-rate debt's principal and fee, with the daily penalty for every second past its maturity, to the floating debt with interest accrued to this block. Reach for it to size a repayment, or to act when a debt grows past a threshold.