🛠️Technical Architecture

Built on Base

Why Base? Base provides Ethereum-level security through its L2 rollup architecture while offering transactions under $0.50 compared to mainnet Ethereum's higher costs. Confirmations take just 2-3 seconds instead of minutes. Seamless Coinbase integration makes onboarding easy for millions of users. The growing DeFi ecosystem provides composability with other protocols.

Network Details: Base uses Chain ID 8453 for wallet configuration. The RPC endpoint is https://mainnet.base.org for direct node access. The block explorer is https://basescan.org for viewing transactions and contracts.


Smart Contract System

MarketFactory creates new markets on predetermined schedules for each asset and timeframe. It manages all seven timeframes from 15-minute to monthly markets. It handles asset-specific logic like market hours for stocks versus 24/7 for crypto.

OrderBook manages the UP/DOWN order book for each market, matching opposing orders in real-time. It mints and burns positions when complementary orders meet. It enforces collateral requirements ensuring every position pair is backed by $1.00. It distributes the 0.25% trading fees to liquidity providers automatically.

PositionToken (ERC-1155) represents UP and DOWN positions as fungible tokens using the ERC-1155 multi-token standard. Positions are minted when UP plus DOWN orders equal exactly $1.00. Positions are burned when complementary positions are merged or closed. It handles settlement payouts automatically when markets close.

SettlementEngine determines winners by comparing final price to opening price (UP, DOWN, or TIE). It processes payouts of $0.99 per winning position after the 1% settlement fee. It manages ties by refunding all positions with no fees charged. It distributes fees to the treasury and liquidity providers.

OracleManager fetches prices from multiple independent data sources for redundancy and accuracy. It validates data consistency across sources to prevent manipulation. It manages dispute resolution when sources disagree significantly. It coordinates market hours for assets with trading sessions like stocks.

TreasuryManager collects all fees including the 0.25% trading fees and 1% settlement fees. It manages the insurance fund for extreme edge cases and platform security. It distributes LP rewards including the 3x bonus for two-sided liquidity. It tracks revenue by timeframe and asset category for transparency.


Oracle Data Sources

Cryptocurrencies (24/7): Data comes from CoinMarketCap and CoinGecko aggregators plus direct Binance and Coinbase price feeds for real-time accuracy. Updates occur every minute for hourly markets and every 5 minutes for longer duration markets.

Stocks (Coming Soon): Data will come from NYSE, NASDAQ, and Bloomberg terminals for official pricing. Real-time feeds operate during market hours for active trading. Last traded price is used during off-hours and weekends for reference.

Precious Metals (Coming Soon): Data will come from COMEX, LBMA, and Kitco for official commodity pricing. Real-time feeds operate during global trading sessions when metals markets are active.

Billionaire Net Worth (Coming Soon): Data will come from Forbes Real-Time Billionaires and Bloomberg Billionaire Index for official wealth tracking. Updates occur daily or weekly depending on market duration.

NFT Floor Prices (Coming Soon): Data will come from OpenSea, Blur, and LooksRare aggregating across major marketplaces. Updates occur every 5-15 minutes for near real-time NFT market tracking.

Sports (Coming Soon): Data will come from official league APIs including NBA, NFL, and soccer organizations for authoritative results. Multiple sports data providers will be used for redundancy and validation. Real-time feeds operate during games for in-play markets.

Validation Process: Multiple independent sources are queried for every price point. Cross-validation algorithms check for consistency across sources. Divergence beyond acceptable thresholds triggers manual review by the team. A dispute resolution process handles edge cases where sources significantly disagree.


Security Features

Smart Contract Security: All contracts are audited by leading blockchain security firms before deployment. Open-source code is available on GitHub for community review and verification. Multi-signature governance requires multiple approvals for critical changes. Time-locked changes give the community advance notice before updates take effect. Emergency pause functionality can halt trading if critical bugs are discovered. An active bug bounty program rewards security researchers for finding vulnerabilities.

Fund Security: Every position pair is backed by exactly $1.00 collateral held in smart contracts. Non-custodial architecture means your keys control your funds at all times. Segregated user funds are never commingled with operational funds. Battle-tested contract patterns based on industry-proven designs minimize risk. Funds remain protected during upgrades through careful migration procedures.

Oracle Security: Multiple data sources prevent single points of failure or manipulation. Cross-validation checks ensure prices are legitimate before settlement. Dispute resolution handles cases where sources disagree beyond thresholds. Manual review catches anomalies that automated systems might miss.

Last updated