Option Series and Option Identity
An Option Series is a single tradable contract definition on Solana. Every order and lookup identifies a series using its four-field Option Identity:| Field | Type | Description |
|---|---|---|
underlyingAsset | AddressLike | Mint address of the underlying asset. |
optionType | OptionType | OptionType.Call or OptionType.Put. |
strikePrice | number | Strike price in USD (stored onchain as micro-USD). |
expirationDate | bigint | number | Expiration Unix timestamp in seconds. |
OptionAccount, OptionPool, CollateralPool, and token mint PDAs directly from these four fields.
Contract Units and Scaling
Onchain instructions use integer base units rather than floating-point numbers:- Contract quantities: Pass quantities to builders in base units. One contract equals
1_000_000n(QUANTITY_UNITS_PER_CONTRACT). UsecontractsToBaseUnitsandbaseUnitsToContractsto convert. - Underlying multiplier: One listed contract covers
100units of the underlying (UNDERLYING_UNITS_PER_CONTRACT). - Strike prices: Pass
strikePricein USD dollars to high-level builders. Internally the program stores micro-USD (1e6), which you can convert withusdToMicroUsdandmicroUsdToUsd. - Collateral amounts: Pass token amounts in the Collateral Mint’s base units (for example,
1e6for 6-decimal USDC).
Cash Settlement and Collateral Mint
All Option Series on this program settle in cash. The Collateral Mint is a dollar-denominated SPL token mint (such as USDC) with at most 9 decimals, distinct from the underlying asset. A new Option Series can be initialized only when its Collateral Mint is on the program allowlist. Both premiums and payouts move in the Collateral Mint.Market Participants
- Long: Buys contracts from an
OptionPoolby paying premium in the Collateral Mint. A Long can sell contracts back to the pool before expiration or hold until expiry settlement. - Short (Writer): Mints contracts into an
OptionPoolagainst collateral. The Writer earns premium when Longs buy those contracts. - Unsold Size: The portion of a Writer’s minted contracts not currently held by Longs. A Writer can unwind only Unsold Size. Sold contracts return to Unsold Size when Longs close back to the pool.
- OMLP (Option Margin Liquidity Pool): A per-Collateral-Mint lending vault. Lenders deposit liquidity into the OMLP vault to earn interest. Writers borrow from the OMLP to collateralize leveraged Shorts.
Multi-leg net margin (
init_strategy_margin) is disabled on the current program and returns StrategyMarginDisabled (6168). Post collateral per leg instead.