useDrawForMargin's parameters: the collateral and account, and the margin the caller chooses.

interface DrawForMarginHookParams {
    account?: `0x${string}`;
    collateral: undefined | bigint;
    horizonSeconds: undefined | bigint;
    priceFallBps: undefined | bigint;
}

Hierarchy (View Summary)

Properties

account?: `0x${string}`

The account that would open. Defaults to the connected wallet (MK-106).

collateral: undefined | bigint
horizonSeconds: undefined | bigint

Core's horizonSeconds: how long the position must survive. Required, with no default (MK-240). undefined keeps the hook disabled rather than substituting a horizon: a form whose horizon field is empty has not asked the question yet.

priceFallBps: undefined | bigint

Core's priceFallBps: the price fall the position must survive, from 0n up to but excluding 10_000n. Required, with no default (MK-240), and undefined keeps the hook disabled.