> ## Documentation Index
> Fetch the complete documentation index at: https://docs.epicentral.markets/llms.txt
> Use this file to discover all available pages before exploring further.

# Changelog

> Release notes for the Solana Option Standard SDK.

**0.33.1**

November 24, 2026

## Generated Client Documentation

Synced Codama account and event comments with the latest option program IDL. The integrator-facing API is unchanged.

**0.33.0**

November 22, 2026

## Program Security and Margin Sync

Syncs the generated client, account layouts, error table, opening margin math, and OMLP withdrawal planning with the latest option program security updates.

### Breaking

* `PoolLoan` layout grew from 213 to 229 bytes (`version = 3`), appending `escrowedPrincipal` and `escrowedCollateral`. Account fetchers (`fetchPoolLoan`, `fetchPoolLoansByMaker`, `fetchAllActivePoolLoans`) decode the 229-byte layout. Resize live onchain `PoolLoan` accounts before reopening trading.
* Removed the legacy Switchboard volatility quote helpers (`deriveVolatilityQuoteAddress`, `deriveVolatilityQuoteAddressFromMarketData`, `isVolOracleEnabled`) and removed `volatilityQuoteAccount` from all SDK builders (`buildInitOptionSeriesInstruction`, `buildBuyFromPool*`, `buildCloseLongToPool*`, `buildStopOutWriterInstruction`). Pricing reads Historical Volatility directly from `MarketDataAccount.historicalVolatilityPpm`, and builders fill the unused legacy `volatility_quote_account` ABI slot internally.

### Added

* `computeMinimumOpeningOwnCollateralBaseUnits` plus `calculateKinkImpliedVolatilityPpm`, `fairValuePerContractMicroUsd`, `contractsValueBaseUnits`, `stopOutFeeBaseUnits`, `requiredCashCollateralBaseUnits`, and `poolUtilizationBps` to mirror the onchain conservative opening margin check enforced at mint.
* Program error code `6171` (`OpeningMarginNotMet`) in generated error constants and `OPTION_PROGRAM_ERROR_INFOS`.

### Changed

* `withdrawAllFromPosition` removes the retired `insuranceOwed` shortfall withdrawal cap. Uncovered shortfalls beyond the Insurance Fund now socialize directly across vault shares.
* Approved cash Collateral Mints are capped at 9 decimals onchain (`InvalidMint` above 9), and oversized premium base-unit conversions fail closed with `ArithmeticOverflow`.

**0.32.2**

November 11, 2026

## Comment Cleanup

Comments and internal type casts were cleaned up in account listing, long and short builders, Pyth helpers, and strategy margin. The integrator-facing API is unchanged.

**0.32.1**

November 2, 2026

## README Corrections

The README was corrected. The package API is unchanged.

* Quantities use `QUANTITY_UNITS_PER_CONTRACT` (`1_000_000n`).
* A full long close returns the LONG token account rent. Pass `closeLongTokenAccount: false` on a partial close.
* On version 1, `sendBuiltTransaction` always writes both resource limits. Compute defaults to 1,400,000. Loaded accounts default to 8 MiB.
* On version 0, the send fails when the lookup table does not contain this program.
* `priceOption` prices one unit of the underlying. One listed contract covers `UNDERLYING_UNITS_PER_CONTRACT` (100) of those units.
* `calculateRequiredCollateral` defaults to physical settlement. Pass `"cash"` and the collateral mint decimals for cash-settled series.
* Pass `maxAgeSeconds` below 20 to `evaluatePythPriceUpdate` so the Pyth price is still fresh when the transaction lands.

**0.32.0**

October 29, 2026

## First Public Release

TypeScript client for the Solana Option Standard program. Import from the package root. Peer dependency is `@solana/kit` `^8.3.0`.

### Added

* Account readers and PDAs for option pools, positions, vaults, and pool loans.
* Long flows: market buy, single and multi close, and preflight checks.
* Short flows: series init, mint, leveraged mint, borrow, repay, and unwind of unsold size with loan repayment.
* OMLP deposit and withdraw.
* `sendBuiltTransaction` for version 1 (4096-byte envelope, no lookup table) and version 0 (lookup table that contains this program).
* `priceOption`, `calculateRequiredCollateral`, and Pyth spot helpers. Trading spot is `pythPriceFeedAddress` for the market feed.
* `decodeSdkError` plus the program error codes.
* `requestTestUsdc` and `buildTestUsdcFaucetMessage`: sign a short message and ask a deployment faucet (`/api/sdk/test-funds`) to mint a fixed paper USDC balance. The mint authority stays on the server. See `examples/06-test-funds.ts`.
* Runnable sketches in `examples/`.

### Notes

* One contract is `1_000_000` base units. Settlement is cash.
* `init_strategy_margin` is refused on the current program (`StrategyMarginDisabled`, 6168). Post collateral per leg.
* Expired positions are settled on-chain into the user's token account. A trading client reads the result.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.