How Agari fits together
Devnet prediction Windows and the separate PreStocks desk share an app but use different money paths.
Agari is a Solana app for short stock-price calls, holder cover and verifiable results. Its core venue is an Anchor order book. It lists Windows, matches Up and Down orders, records signed opening and closing prints, settles, and lets owners claim. The PreStocks desk is a separate program designed to hold tokens on mainnet; its paper practice flow is available while its mainnet deploy is pending.
The owner signs a call; operators keep the clock and prints moving; the programs decide the result.
Choose a stage to read its responsibility and authority.01 · Owner action
02 · Venue operation
03 · Read and prove
Owner wallet
A normal order needs the owner's wallet signature. Tap trading uses a browser session key under an owner-approved vault grant. Ops never receives the wallet private key.
Can authorize its own stake and withdraw its own funds.
Trading uses test tUSDC on Solana devnet. The price path depends on each Window's policy. PreStocks catalogue reads are signed by Agari's attestor; Pyth, RedStone and Switchboard have their own verification paths.
Download diagram Full size| Layer | Responsibility |
|---|---|
| Web app | Shows markets, baskets, tickets, desk decisions and receipts. It does not hold a user's private key. |
packages/core | Pure registry, market and desk rules; integer money arithmetic. |
packages/markets | Only Solana integration and transaction boundary. It builds instructions and reads the chain. |
| Anchor programs | Nine devnet programs cover the venue, vault, reserves, strategies, Private and Duel; agari-desk was rehearsed on a mainnet fork and awaits its mainnet deploy. See the program map. |
| Ops and indexer | Roll Windows, relay prices, settle, quote, run paper desks and serve reads. These role keys do not replace the owner's wallet. |
Two money paths
Predict and Cover: tUSDC with no market value on Solana devnet. A normal order is wallet-signed. A funded Trading Balance can use a bounded grant for tap-trading. The resulting Window settles from signed prints and the on-chain program, not a browser decision.
Hold through a desk: a paper ledger during practice. A future Go live step would use real USDC and PreStocks on Solana mainnet. The owner chooses assets and limits; a runner chooses timing; agari-desk checks every operator action and the owner alone may withdraw. How the desk decides records the trust boundary.
A read-only visitor can browse markets, basket marks, desk shares and proof without signing. A displayed screen is not a confirmed transaction. Use Programs, Price sources and live status to see which path is ready. PreStocks and Pyth in Agari follows the two outside price sources that decide money through the product.