Docs · Mechanics

Collateral and payoffs

Every spread is fully collateralised when it is sold. Nothing is lent, nothing is margined, and nobody can be liquidated.

What gets locked

For a sale of size spreads of width w, the writers lock w × size USDC in OptionMarket and receive the buyer's premium. That locked amount is the most the spreads can ever pay, so the contract always holds enough.

0low strikehigh strikewidth − premium− premium
Put spread: profit or loss at expiry against the settlement mark.

Payout

SpreadPays per unit at settlement price P
Call spread (low K1, high K2)min(max(P − K1, 0), K2 − K1)
Put spread (low K1, high K2)min(max(K2 − P, 0), K2 − K1)

Redeem and reclaim

Holders call redeem and burn their tokens for the payout. Writers call reclaim for the rest of their locked collateral. Both work in any order, in the block the settlement lands or later.

The invariant

OptionMarket's USDC balance is always at least the sum of what it owes: the full width of every open spread, plus every unclaimed payout and reclaim. The test suite checks this after random sequences of sales, settlements, redemptions and refunds.