Skip to main content
Oracle The Dubs Oracle is an automated service that bridges real-world sports results with your on-chain bets. It continuously monitors live sports scores and automatically resolves games when events finishโ€”no human intervention required.

How It Works

1

Monitor

Oracle polls live sports APIs every 60 seconds
2

Detect

When a game ends, oracle detects the final score
3

Resolve

Calls resolve_automatic_game on the Solana smart contract
4

Distribute

Fees are deducted and winners can claim their payouts

Data Sources

ESPNScore Resolution (Authoritative)All outcome-determining scores come exclusively from ESPN APIs. Supports NFL, NBA, MLB, NHL, and College sports.

TheSportsDB

Event MetadataTeam names and schedules come from TheSportsDB. This data is for display onlyโ€”not used for resolution.

What the Oracle Monitors

Every 60 seconds, the oracle checks:
Data PointSource
Pending gamesPostgreSQL database
Live scoresESPN APIs
Game statusESPN (in progress, final, postponed)
Final scoresESPN

Resolution Process

When a sports game finishes:

Fee Distribution on Resolution

RecipientPercentageNotes
Dubs (Operator)4-5%4% if referrer exists, 5% otherwise
Referrer0-1%1% if game creator was referred
Oracle1%Self-funding for operations

Oracle Wallet

Hardcoded Address โ€” Cannot Be Changed
FWUJCthDfPcgmTvdQWM5uofxxiYjqJFMMwiLYvS7LBFa
This address is hardcoded in the smart contract. Itโ€™s the only wallet authorized to resolve automatic sports games.

Safety Features

If the oracle fails to resolve a game within 24 hours of lock time, anyone can trigger an emergency refund. This returns all stakes to players with no fees.This ensures funds are never permanently locked, even if the oracle goes offline.
The oracle receives a 1% fee from each resolved game. This covers Solana transaction costs, ensuring the system can operate indefinitely without external funding.
The smart contract prevents the oracle from resolving games before the lock time passes. This ensures no one can manipulate results before the actual game finishes.Even if the oracle is compromised, it cannot resolve a game early.

Trust Model

The oracle is a trusted component of the system. It has the power to determine game outcomes.However, multiple safeguards limit potential abuse:
  • Hardcoded wallet address (canโ€™t be changed)
  • Lock time enforcement (canโ€™t resolve early)
  • Emergency refunds (funds never locked forever)
  • On-chain transparency (all resolutions are public)

Technical Details

PropertyValue
Poll Interval60 seconds
Data SourceESPN APIs (authoritative)
Emergency Refund24 hours after lock time
Fee1% of prize pool
WalletFWUJCthDfPcgmTvdQWM5uofxxiYjqJFMMwiLYvS7LBFa