Belgeler yalnızca İngilizce olarak tutulmaktadır. İngilizce uyumluluk yedek sürümünü görüntülüyorsunuz.
Status: current. Owner: documentation owners. Authority: Level 3.
Build source: unavailable. Content: SHA-256 8f54fa2cf61d63a293ecf2c636feab05d208d45321196f428e941b77c5ccf1a3.
Verification: see the evidence and applicability on this page. A source revision does not establish production readiness.
· Raw Markdown · Report a documentation problem (repository access required)
Conventions#
Units, scales, and time conventions used across the Seesaw docs and SDKs. Each
row names the source that defines it. Where a value is protocol-controlled
rather than fixed, the row says so; read the deployed config for that value.
For the full constant list see Constants; for term
definitions see the Glossary.
Amounts#
| Convention | Definition | Source |
|---|
| Settlement token decimals | 6. Amounts are integers in base units (1 token = 1,000,000 base units). | SETTLEMENT_MINT_DECIMALS in program/src/constants.rs |
| Share decimals | Binary share mints use the same base-unit scale as the settlement mint. | Doc comment on SETTLEMENT_MINT_DECIMALS in program/src/constants.rs |
| Quantity | Share quantities are integers in share base units, not fractional shares. | Same scale as above; Glossary "Collateral" |
| Full payout | One complete binary payout is P_MAX = 10000 in price basis points. | P_MAX in program/src/constants.rs; Constants |
| Single settlement mint | A deployment admits one configured 6-decimal settlement mint. Read the deployment's config rather than assuming a symbol. | SETTLEMENT_MINT_DECIMALS; Deployment checks |
Prices and basis points#
| Convention | Definition | Source |
|---|
| Order price | Basis points of a complete payout. Valid trading prices are 1 to 9999; 0 is the "price not captured" sentinel and 10000 is not tradable. | P_MAX doc comment in program/src/constants.rs |
| Basis points divisor | 10,000 bps = 100%, used for price, fee, and rebate math. | BPS_DIVISOR in program/src/constants.rs |
| Collateral | collateral = price_bps * quantity / 10,000, integer arithmetic. | Glossary "Collateral" |
| Tick size | Minimum price increment in bps, bounded 1 to 1000 by the program. The active value is market and config controlled. | MIN_TICK_SIZE_BPS, MAX_TICK_SIZE_BPS in program/src/constants.rs |
| Fee rate | taker_fee_coefficient_bps * (P_MAX - p) / P_MAX, no cap. A zero taker_fee_coefficient_bps disables taker fees. Allocation applies to the collected fee, not notional. | Constants "Fee Curve Parameters" |
| Oracle price | Stored in the Pyth feed's own exponent (-expo decimals), not in bps. Do not mix oracle prices with order prices. | start_price / end_price in program/src/state/market.rs |
| Rounding | Fees round up (protocol receives dust); payouts round down. Fee allocations must sum to the collected fee. | Security (unavailable reference) section 2; AGENTS.md fee conservation |
Time#
| Convention | Definition | Source |
|---|
| Timestamps | Unix time in seconds, signed 64-bit (t_start, t_end, created_at, resolved_at). | MarketAccount fields in program/src/state/market.rs |
| Durations | Seconds. Native markets: default 900, minimum 60, maximum 604800. | DEFAULT_MARKET_DURATION, MIN_MARKET_DURATION, MAX_MARKET_DURATION |
| Native market ID | market_id = floor(unix_timestamp / duration_seconds); t_start = market_id * duration; t_end = t_start + duration. | Glossary "Market ID"; Constants |
| External market ID | Stored as an identifier, not derived from a window. Use the stored end time, not the ID, for lifecycle decisions. | Doc comment on market_id in program/src/state/market.rs |
| Day | 86,400 seconds. | SECONDS_PER_DAY in program/src/constants.rs |
| Slots | Used only where a field is named *_slot (for example force_cancel_enabled_slot). Everything else is wall-clock seconds. | MarketAccount in program/src/state/market.rs |
Encoding#
Integers in account data and instruction payloads are little-endian. Byte
offsets, discriminators, and PDA seeds are defined in
Accounts, Instructions,
and PDAs.
- Constants in docs are generated from Rust and the IDL; see the generated
header of Constants. Do not edit values by hand.
- Formulas in the Glossary and Security (unavailable reference)
describe the integer arithmetic in
program/src. If a doc and the program
disagree, the program wins; see the authority order in
docs/internal/DOC_HIERARCHY.md.
- Governance-controlled settings (taker fee coefficient, tick size, match
limit) have defaults in Constants but must be read from the
deployed config.