Skip to main content

System Context

HISTORICAL - describes the abandoned tournament / forecast-AMM design

This page documents the pre-migration architecture (TournamentManager, matchday-gated trading, on-chain ForecastMarket AMM). None of it exists in the current system: tournaments were replaced by instant 1v1 prestige-ladder battles, prediction markets are off-chain parimutuel in non-redeemable in-game currency, and the contract suite is Charter v2 + the Uniswap v4 venue. For current rules see the Platform Rules page; for current architecture see the repo's docs/architecture/ and my-dapp-contracts/docs/ARCHITECTURE.md.

This view frames D4L in its broader environment and shows the canonical on-chain boundary versus off-chain UX/indexing services.

  • On-chain contracts are canonical for custody, settlement, transfer gating, match results, and forecast settlement/redemption.
  • Off-chain services are for UX/speed only: indexed read models, quote/simulation reads (eth_call), tx tracking, realtime feeds, and notifications.
  • API and Worker are the only writers to Postgres.
  • DEX liquidity is external to the D4L contracts but integrated after graduation.