Result of MusdClient.previewOpen: fee, debt, ICR, liquidation price, and the floor/RM flags.

interface OpenPreview {
    entireDebt: bigint;
    fee: bigint;
    icr: bigint;
    isRecoveryMode: boolean;
    liquidationPrice: bigint;
    meetsMinimum: boolean;
    meetsRecoveryRequirement: boolean;
    netDebt: bigint;
}

Properties

entireDebt: bigint

netDebt + 200 gas reserve.

fee: bigint

getBorrowingFee(debt), read on-chain (governable).

icr: bigint

computeICR(collateral, entireDebt, price).

isRecoveryMode: boolean

checkRecoveryMode(price), always surfaced.

liquidationPrice: bigint

Price at which the opened position would hit MCR.

meetsMinimum: boolean

netDebt >= minNetDebt(), the debt floor (C6).

meetsRecoveryRequirement: boolean

In Recovery Mode an open must keep ICR >= CCR (150%); true in normal mode.

netDebt: bigint

debt + fee, the value the minNetDebt floor is checked against (C6).