Inputs to MusdClient.getBorrowingPower: the collateral to size a draw against.

interface GetBorrowingPowerParams {
    account?: `0x${string}`;
    collateral: bigint;
    price?: bigint;
}

Hierarchy (View Summary)

Properties

account?: `0x${string}`

The account that would open the Trove. Supply it whenever you have it (MK-067, MK-106).

The borrowing fee is skipped entirely for a fee exempt account (BorrowerOperations.sol:637-643), and the exempt cohort is NOT empty on mainnet, so for such a caller the largest valid draw is LARGER than the one this returns without it. Omitted, the calculation assumes the account is not exempt, exactly as previewOpen does with the same absence. useBorrowingPower supplies the connected wallet when the caller does not.

It has no effect in Recovery Mode, where the fee is skipped for everyone and the mode is read from the chain rather than from this parameter.

collateral: bigint
price?: bigint

Override the price; defaults to fetchPrice().