Get debt

Get debt on Morpho Midnight

Ethereum
Ethereum
Base
Base

Reads onchain state

Reads an address's debt in a Morpho Midnight market, in the loan asset. A Midnight borrow is a fixed amount owed at maturity, so the debt does not grow between reads: it moves only when the borrower repays, takes more, or is liquidated. Reach for it to size a repayment ahead of maturity, to require the debt is cleared before collateral leaves, or to trigger a repayment when a balance elsewhere covers it.

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 Morpho Midnight · 9