Documentation
    Preparing search index...
    • Admit one queued mint for the order-flow companion and return its receipt.

      kind is a constants mint kind. The companion has already taken budget + order_fee from the account and escrows it. budget caps the fill's all-in cost; the companion sets it to min(max_cost, balance - order_fee), and to at most quantity for an exact-quantity mint. The order prices at a Pyth price on Lazer channel channel, generated at or after tau_ms, and must fill before deadline_ms.

      Aborts unless W is allowlisted, the version and cutover gates pass, trading and this market's mints are unpaused, and the snapshot stage is closed. The timing must fit (EInvalidOrderTiming): channel a supported fixed-rate channel (lazer_price::channel_fixed_rate_*), tau_ms on its grid, at most one of its ticks before now, and before deadline_ms, τ before the no-trade window, and the deadline at least constants::deadline_expiry_margin_ms!() before expiry. Then svi_max_age_ms must be within constants::max_svi_max_age_ms!() and kind a mint kind (EInvalidOrderTerms), the volatility snapshot must load, budget must be positive (EMintCostCapRequired), the order must pass its own limits at the clock without subsidy (EOrderFailsLimits), and its cash need must fit the market's spare cash (EInsufficientMarketCash). Admission then pins both boundary nodes, creating them under the node cap, and adds the cash need to the ledger.

      Type Parameters

      • W extends BcsType<any, any, string>

      Parameters

      Returns (tx: Transaction) => TransactionResult