Settlement tokens#
Every market settles in one registered settlement token. This page explains which tokens the program admits and how a token's decimal count affects shares, prices and fees.
Admitted tokens#
A settlement token is a classic SPL Token mint or a Token-2022 mint registered as a currency for the deployment. The program admits a mint only if:
- it has 6, 7, 8 or 9 decimals (
ADMITTED_SETTLEMENT_DECIMALS_MINtoADMITTED_SETTLEMENT_DECIMALS_MAXinprogram/src/constants.rs); and - for Token-2022, every mint extension it carries is on the approved list: metadata pointer, token metadata, group pointer, token group, group member pointer and token group member (extension types 18 to 23).
Transfer fees, transfer hooks, permanent delegates, confidential transfers and a mint close authority are rejected. The web, Android and CLI market-creation flows screen a mint with the same rules before they ask you to sign.
One share atom is one token atom#
When a market is created, its YES and NO share mints take the settlement token's decimal count. One share atom therefore equals one token atom at every admitted decimal count:
- a winning share redeems for one whole token, and one share atom for one token atom;
- prices stay in basis points of one token per share, whatever the decimals;
- collateral, fees and payouts are integer atoms of the token, so fee conservation (protocol, creator, referral, builder and maker legs plus rounding dust) holds at every decimal count. See fees and treasury split.
Limits are counted in atoms#
Configuration thresholds such as the maximum order size, the minimum resting notional and the spline minimum commitment are stored and applied in atoms, unchanged in every currency. The same atom limit is a smaller whole-share amount in a token with more decimals: the default maximum order size is 1,000,000 shares at 6 decimals and 1,000 shares at 9 decimals.
Display amounts in whole tokens by dividing by 10^decimals of the market's
settlement mint; never assume 6 decimals. See conventions.