Step by Step Flow
Phase 1 — Arrive & Explore (No Login)
- Landing: User opens Soundbet.online and can browse markets, trending news, prices, order book (read‑only), comments (read‑only), and docs (T&C, Privacy, About, Docs).
- Decision: User can connect later (continue exploring) or connect now to trade.
Phase 2 — Signup & Smart (Proxy) Wallet
- Connect: User opens Login / Connect and picks either an EOA (MetaMask/Trust/Coinbase) or a Magic.link key.
- Proxy Wallet Setup: On signup, the system derives a counterfactual smart account address (via
CREATE2). No deployment cost yet. - Session & Owner Keys: User signs to establish the session and confirm wallet ownership (owner = EOA or Magic.link).
- Result: If signature succeeds, UI shows connected address. If not, show retry error.
Phase 3 — Deposit (Multi‑Chain)
- Choose Chain & Token: User selects source chain and supported token (prefer USDC).
- Bridge Logic:
- USDC path (CCTP): Burn on source chain → mint native USDC on Polygon hub.
- Other tokens: Route via CCIP/Axelar adapter to Polygon.
- Credit & Confirm: Polygon hub DepositRouter credits the user’s Proxy Wallet and emits a receipt. UI updates balance.
Phase 4 — Trade on a News Market
- Select Market & Outcome: User picks a market and chooses YES or NO (+ amount).
- Quote: Backend returns the best execution path (AMM or order book), with fees and slippage.
- One‑Click 4337: Build a UserOperation (approve → buy) and optionally sponsor gas via Paymaster (or pay gas in USDC).
- Execute:
- AMM path: Swap collateral → mint position.
- Order‑book path: Settle matched orders on‑chain → mint position.
- Positions & Funds: ERC‑1155 position tokens are minted to the Proxy Wallet; collateral is locked in the market/LP.
Phase 5 — Exit (Sell Early or Hold & Claim)
- Exit Decision:
- Sell before resolution: Burn position tokens; receive USDC back to Proxy Wallet (minus fee).
- Hold to resolution: Market locks; Oracle reports; optional dispute window; finalize.
- Claim Winnings (if held): Burn winning tokens; receive USDC to Proxy Wallet.
Phase 6 — Withdraw or Reuse
- Next Step:
- Withdraw: Keep on Polygon or bridge out to another chain.
- Reuse: Keep USDC in Proxy Wallet for new trades (fast UX, bundled ops).