Inputs to MusdClient.previewOpen: the collateral + draw to preview.

interface PreviewOpenParams {
    collateral: bigint;
    debt: bigint;
    price?: bigint;
}

Properties

collateral: bigint
debt: bigint

Requested draw (MUSD received; the borrower owes draw + fee + 200).

price?: bigint

Override the price; defaults to fetchPrice().