> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenpoly.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Welcome

> Token-Poly prediction markets on Solana devnet

# Token-Poly

Token-Poly brings YES/NO prediction markets for pump.fun tokens to the Solana ecosystem. The project currently runs on **Solana devnet** so we can gather feedback, polish the experience, and harden automated resolution before moving to mainnet.

## Project Snapshot

* **Architecture**: Anchor Solana program + TypeScript/Express backend + React 19/Vite frontend + PostgreSQL (Drizzle ORM)
* **Program ID**: `yUERHnWw2MBozs9WZKCeMneSTH5EvJyWtYVr3NMPXNL` (devnet)
* **Data Source**: DexScreener for market cap (function type 0) and 24h volume (function type 1)
* **Fee Split**: 1% platform, 2% creator, 97% added to the selected pool
* **Resolution**: Backend resolver wallet polls DexScreener, submits Anchor transactions, and syncs Postgres stats
* **Cancellations**: Markets cannot be cancelled once active; all votes stay locked until automatic resolution

## Why Devnet First?

* Validate new Solana program releases without risking real funds
* Exercise Dexscreener data integrations and resolution automation end to end
* Collect UX feedback while transactions remain free of mainnet congestion and fees

You can still simulate realistic conditions by funding devnet wallets through the official Solana faucet.

## Get Ready to Play

* **Switch to Devnet**
  * Phantom: Open settings ⚙️ → **Developer Settings** → **Change Network** → choose **Devnet**
  * Solflare: Click the network selector (top right) → pick **Devnet** → reload the dApp tab

* **Reconnect**
  * Refresh Token-Poly and approve the wallet prompt so transactions route to devnet endpoints

### Fund Your Wallet

* [https://faucet.solana.com](https://faucet.solana.com) (official Solana faucet)
* [https://solfaucet.com](https://solfaucet.com) (select **Devnet**)
* [https://faucet.quicknode.com/solana/solana-devnet](https://faucet.quicknode.com/solana/solana-devnet)
* Solana CLI: `solana config set --url https://api.devnet.solana.com` then `solana airdrop 2 <wallet>`
* Solflare users: request SOL from one of the faucets above after switching networks

### Voting Is Locked

* You can vote once per market; the stake cannot be withdrawn or increased afterward
* Positions stay locked until the timer expires and the market resolves—cancellations are disabled once trading starts
* Plan your stake size carefully—liquidity returns automatically when you claim winnings or receive a refund

## Explore Next

* Jump into the **Quick Start** guide for a five-minute walkthrough
* Learn the full **Market Lifecycle** from creation to payouts
* Visit the **Wallet Guide** for a detailed setup checklist
* Review **Fees & Payouts** to see exactly how the 1% platform and 2% creator fees are applied
* Read the **Creator Playbook** if you want to launch your own markets


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.