🛠️Technical Architecture

Smart Contract System

MarketFactory Contract: Creates new markets continuously based on timeframe schedules. Maintains registry of all markets across all asset classes and timeframes, manages state transitions, and handles market creation logic for different asset types.

Market scheduling logic:

  • Crypto: Continuous creation at expiration times

  • Stocks/Metals: Respects trading hours, creates markets at session open

  • NFTs: 24/7 creation based on floor price snapshots

  • All assets: Supports hourly, daily, weekly, monthly cycles

BeginnerMarket Contract: Individual market instances handling LONG/SHORT pool accumulation, recording participant positions with entry timestamps and prices, enforcing locked commitments until expiration, coordinating settlement with entry-weighted distribution, and processing fees.

OrderBook Contract (Standard Mode): Manages YES/NO bid/ask order lists, handles order matching, coordinates share minting/burning, enforces collateral requirements, processes all order types, distributes trading fees, and manages fee collection (0.25% per trade).

ShareToken Contract (Standard Mode): ERC-1155 compatible tokens for YES/NO shares. Mints shares when orders match, burns when merged, tracks ownership, handles settlement payouts (minus 1% settlement fee), and manages share lifecycle.

SettlementEngine Contract: Determines winning pool, calculates individual performance percentages (Beginner Mode), computes weighted stakes, determines distribution amounts, processes share payouts (Standard Mode), and handles fee distribution (0.25% trading, 1% settlement).

OracleManager Contract: Fetches asset prices from multiple sources, validates consistency across data providers, maintains historical records, manages dispute resolution, handles different update frequencies per asset class, and coordinates market hour awareness for time-limited assets.

TreasuryManager Contract: Collects platform fees (0.25% trading, 1% settlement), manages insurance fund, distributes revenue per governance parameters, maintains financial audit trails, and tracks fee revenue by timeframe.

Security Features:

  • Multi-signature requirements for critical functions

  • Time-locked changes prevent sudden rule modifications

  • Emergency pause functionality (governance-controlled)

  • Proxy patterns allow upgrades while preserving state

  • All interactions logged on-chain for transparency

  • Fee calculations enforced at smart contract level

Oracle and Data Management

Primary Sources by Asset Class:

Cryptocurrencies (24/7 Updates):

  • CoinMarketCap API (real-time)

  • CoinGecko API (real-time)

  • Binance price feeds (streaming)

  • Coinbase price feeds (streaming)

  • Aggregated spot prices across major exchanges

  • Update frequency: Every minute for hourly markets, every 5 minutes for longer timeframes

US Stocks (Market Hours 9:30 AM - 4:00 PM ET) - Coming Soon:

  • NYSE real-time data

  • NASDAQ real-time data

  • Bloomberg Terminal feeds

  • Multiple market data providers

  • Update frequency: Real-time during trading hours, last price during off-hours

Precious Metals (Market Hours vary) - Coming Soon:

  • COMEX futures prices

  • London Bullion Market Association

  • Kitco spot prices

  • Multiple precious metals exchanges

  • Update frequency: Real-time during trading sessions, last price during off-hours

Billionaire Net Worth (Daily Updates) - Coming Soon:

  • Forbes Real Time Billionaires (updates daily)

  • Bloomberg Billionaires Index

  • Direct stock market feeds for major holdings

  • Update frequency: Daily or weekly depending on market timeframe

NFT Floor Prices (24/7 Updates) - Coming Soon:

  • OpenSea API floor prices

  • Blur marketplace aggregation

  • LooksRare marketplace data

  • Multiple NFT marketplace feeds

  • Update frequency: Every 5-15 minutes depending on collection liquidity

Validation Process:

  • Weighted averaging across sources

  • Close values (within 2%-3%) treated as consensus

  • Significant divergence triggers escalation

  • Manual governance review if automated resolution fails

  • Higher validation frequency for shorter timeframes

  • Trading hour awareness for non-24/7 assets

Data Types:

  • Real-time updates during trading (informational)

  • Critical settlement values (opening and closing only)

  • Historical archive for audit purposes

  • Market hour status tracking

Backup Procedures: Multiple paths to obtaining data. If all sources fail, governance-controlled manual intervention possible. Priority settlement of longer timeframes during oracle issues.

Last updated