Skip to main content
The ixWrapperPostOffer instruction posts a limit order to the Exponent orderbook.

Usage

Required Parameters

Optional Parameters

Returns

Returns an object with:
  • ix — The TransactionInstruction that posts the limit order
  • setupIxs — An array of setup instructions to run before ix:
    • setupIxs[0] — Creates the PT associated token account (if needed)
    • setupIxs[1] — Creates the YT associated token account (if needed)
    • setupIxs[2] — Creates the SY associated token account (if needed)
Use offerOptions("FillOrKill", [true]) to require the order to be filled completely or not at all. Pass false to allow partial fills.
Offer expiry is capped at vault maturity — if expirySeconds exceeds the time remaining until maturity, the offer expires at maturity instead. After maturity, new offers are rejected.