Get debt

Get debt on Exactly

Base
Base

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.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More on Exactly ยท 21