A decentralized prediction market platform where users can bet on real-world events using blockchain technology and Chainlink oracles.
PredictMarket is a trustless betting platform that allows users to speculate on future outcomes of various events. Using smart contracts on Ethereum, the platform ensures transparent, automated, and fair resolution of markets based on real-world data from Chainlink price feeds.
- Daily Over/Under Markets: Bet on whether Bitcoin will end the day higher or lower than the opening price
- Price Race Markets: Predict which asset will reach a target price first (e.g., Gold vs ETH to $5,000)
- pUSD: The betting currency used across all markets
- Token Faucet: Get $10,000 pUSD every 24 hours to start betting
- All bets and winnings are denominated in pUSD
- Real-time price data from trusted Chainlink price feeds
- Automated market resolution based on oracle data
- Support for BTC/USD, ETH/USD, Gold/USD, and more
- Odds adjust in real-time based on how much is bet on each outcome
- The more people bet on one side, the lower the potential payout
- Winners share the losing pool proportionally to their bet size
- All logic executed on-chain via smart contracts
- 2% protocol fee on winnings
- Claim your winnings instantly after market resolution
- No centralized authority can manipulate outcomes
- Connect Wallet: Connect your Web3 wallet to the platform
- Claim Tokens: Visit the faucet to claim free pUSD tokens
- Browse Markets: View active markets with live odds and time remaining
- Place Bets: Select an outcome and bet your pUSD
- Wait for Resolution: Markets resolve automatically using Chainlink oracles
- Claim Winnings: If you win, claim your payout with one click
prediction-market/
├── contracts/ # Smart contracts (Solidity + Foundry)
├── frontend/ # Web interface (Next.js + TypeScript)
└── automation-service/ # Background service for daily market creation
- PredictionMarket:
0x27973Aaa8d043a68b6fb448b5A3E78348a70F0d8 - pUSD Token:
0x8bA038f831116bDFeA3c90c934a94a33c32a98f0 - Faucet:
0x71a850d8B0a04B2a16a393e737cEF81dA4219d4f
- BTC/USD:
0x1b44F3514812d835EB1BDB0acB33d3fA3351Ee43 - ETH/USD:
0x694AA1769357215DE4FAC081bf1f309aDC325306 - XAU/USD (Gold):
0xC5981F461d74c46eB4b0CF3f4Ec79f025573B0Ea
Each component has its own setup instructions:
- Contracts: See contracts/README.md
- Frontend: See frontend/README.md
- Automation: See automation-service/README.md
- Smart Contracts: Solidity 0.8.20, OpenZeppelin, Chainlink
- Frontend: Next.js 14, TypeScript, Tailwind CSS, Wagmi, Viem
- Blockchain: Ethereum (Sepolia testnet ready)
- Oracles: Chainlink Price Feeds
PredictMarket automatically creates new daily Bitcoin over/under markets at midnight, giving users fresh betting opportunities every day. Additional markets can be created for special events or long-term predictions.