TheDocumentation Index
Fetch the complete documentation index at: https://v2-docs.exponent.finance/llms.txt
Use this file to discover all available pages before exploring further.
ixWrapperPostOffer instruction posts a limit order to the Exponent orderbook.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
trader | PublicKey | The trader’s wallet public key |
price | number | The limit price for the offer in APY terms |
amount | bigint | The amount to offer in lamports |
offerType | OfferType | The type of offer (OfferType.BuyYt / OfferType.SellYt) |
offerOption | OfferOptions | Offer execution option via offerOptions("FillOrKill", [boolean]) |
virtualOffer | boolean | Whether this is a virtual offer |
expirySeconds | number | Time until the offer expires (in seconds) |
mintSy | PublicKey | The SY token mint address |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
ptSrc | PublicKey | PT token source account |
ytSrc | PublicKey | YT token source account |
sySrc | PublicKey | SY token source account |
tokenBaseTrader | PublicKey | Base token account for the trader |
Returns
Returns an object with:ix— TheTransactionInstructionthat posts the limit ordersetupIxs— An array of setup instructions to run beforeix: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)
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.