
Morpho Midnight · Reads onchain state
Reads a Morpho Midnight market's state: its units outstanding, what it holds withdrawable, its fees, and its loss factor. The total units are the credit the market's lenders hold, each worth one unit of the loan asset at maturity; withdrawable is what borrowers have repaid or liquidations recovered and lenders have yet to take, and the continuous fee credit is the part of it owed to the fee claimer. The seven settlement fees are the fee charged on a take at each point of the curve from maturity to a year out, as fractions at six decimals, the continuous fee is charged on credit per second at 18 decimals, and the loss factor grows each time bad debt is realized and spread across the market's lenders. Reach for it to see whether the market holds enough withdrawable to pay a withdrawal out, to watch for losses being realized, or to size against the market's depth.
On other protocols · 1