Skip to content

Units and decimals

The program works in raw integer units only. The app converts to shares and dollars per share at the edges.

Quantity Unit Scale
Ticker amounts (quantity, escrow for a sell, fills) raw ticker units 10⁸ per token (xStocks have 8 decimals)
Test-dollar amounts (escrow for a buy, charges, proceeds) quote atomic units 10⁶ per dollar (6 decimals)
Prices (limit, clearing, indicative, reference) quote atomic units per whole raw token 10⁶ = $1.00 per token

So a clearing_price of 247,500,000 is $247.50 per token, and an executable_volume of 1,000,000,000 is 10 tokens.

The money for a fill is filled × price ÷ 10⁸, in quote atomic units. Sellers’ proceeds round down. A buy’s escrow, quantity × limit ÷ 10⁸, rounds up.

xStocks carry a scaled-UI multiplier m: one raw token is worth m shares (Raw amounts and splits). The app reads each mint’s effective multiplier (the scheduled new value once its time has passed) and converts:

From To Formula
shares you type raw units round(shares ÷ m × 10⁸)
raw units shares shown raw ÷ 10⁸ × m
your $ per share program price round($ × m × 10⁶)
program price $ per share shown price ÷ m ÷ 10⁶
quote atomic dollars ÷ 10⁶

A ticker whose multiplier is not 1 says so on its page. For AAPLx and MSTRx on devnet m is 1, so tokens and shares are the same.

Auction windows are set in slots. A slot is a short period of the Solana clock, and its length is measured, not fixed. The keeper’s auctions are 7,000 slots with a 700-slot freeze. Minutes are derived from the slot rate at the time: 4.26 slots per second on 3 Oct 2026 gives about 27 minutes and 164 seconds, and 6.04 slots per second in late September gave about 19 minutes and 116 seconds (Auction lifecycle).

Pyth publish times and the 90-second freshness check use Unix seconds from the on-chain clock.

Sources: web/src/lib/units.ts, uncross/programs/uncross/src/clearing.rs (escrow_for_buy, assign_quote_amounts), docs/numbers.md (Units; slot time), docs/submission-draft.md (6.04 slots/s), devnet getRecentPerformanceSamples read on 3 Oct 2026 (4.26 slots/s).