Common flows
End-to-end examples showing how the contracts work together.Funding Holdings
Deposit into your own Holdings balanceApproving Settlement as operator
Acquiring outcome tokens
Mint complete sets directly to a walletTrading
Sign a limit orderMoving and exiting Holdings balances
Transfer balance internallyExiting positions
Burn complete sets from HoldingsNegative-risk conversion
For a multi-binary market withM child questions, converting N NO positions yields:
indexSet is a bitmask where bit i means the NO token for child question i is being converted.
Permit2 reference
Used for gasless token pulls inHoldings.depositWithPermit, Holdings.batchDepositWithPermit, and Settlement.mintAndDepositWithPermit.
Domain separator calculation:
spender in the signed hash is address(holdings).
For Settlement mint-and-deposit, the Permit2 spender in the signed hash is address(settlement).