A full-stack decentralized prediction market platform built on Fluent Testnet. Users can create markets, place bets with ETH, and winners receive payouts automatically with a 2% platform fee.
- 📊 Browse active prediction markets
- 💰 Place bets with ETH (0.005 - 2 ETH)
- 📈 Real-time YES/NO percentage tracking
- 🏆 Automatic payout distribution for winners
- 💼 View bet history and market stats
- ➕ Create new prediction markets with custom duration
- ✅ Resolve markets (declare YES/NO winner)
- ❌ Cancel markets (auto-refund all participants)
- 📊 View comprehensive market statistics
- 💸 Withdraw accumulated platform fees (2%)
- Solidity 0.8.20 - Smart contract development
- Fluent Testnet - Blockchain network
- ethers.js - Blockchain interaction
- Node.js v16 or higher
- MetaMask browser extension
- Fluent Testnet ETH (for testing)
- Network Name: Fluent Testnet
- RPC URL: https://rpc.testnet.fluent.xyz/
- Chain ID: 20994
- Symbol: ETH
- Explorer: https://testnet.fluentscan.xyz/
- Open MetaMask
- Click Networks dropdown → Add Network
- Enter the details above
- Save
- Address:
0x337BE1144D445486e1bEE6a2C16d99E9636CAb6A - Network: Fluent Testnet
- Explorer: View on FluentScan
- Connect wallet (must be admin address)
- Navigate to Admin Dashboard
- Fill in market question and duration
- Click "Create Market"
- Confirm transaction in MetaMask
- Connect wallet with MetaMask
- Browse markets on homepage
- Click on a market to view details
- Select YES or NO
- Enter bet amount (0.005 - 2 ETH)
- Click "Place Bet"
- Confirm transaction
- Go to Admin Dashboard
- Find the ended market
- Click "Resolve: YES" or "Resolve: NO"
- Confirm transaction
- Winners receive payouts automatically
- Platform Fee: 2% of total pool
- Min Bet: 0.005 ETH
- Max Bet: 2 ETH per user per market
- One bet per user per market
- Winner payouts: Proportional to bet size within winning side
Total Pool: 10 ETH (6 ETH on YES, 4 ETH on NO)
If YES wins:
- Platform fee: 0.2 ETH (2%)
- Payout pool: 9.8 ETH
- User who bet 1 ETH on YES receives: (1/6) × 9.8 = 1.63 ETH
- ✅ Admin-only functions for market management
- ✅ Reentrancy protection
- ✅ Bet limits enforcement (0.005 - 2 ETH)
- ✅ One bet per user per market
- ✅ Automatic winner distribution
- ✅ Safe refund mechanism for cancelled markets
This project is licensed under the MIT License.
- Fluent Network for providing testnet infrastructure
- The Ethereum and Web3 community
Built with ❤️ on Fluent Testnet