GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - RobinOppenstam/PredictionMarket

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
automation-service
automation-service
 
 
contracts
contracts
 
 
frontend
frontend
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

PredictMarket

A decentralized prediction market platform where users can bet on real-world events using blockchain technology and Chainlink oracles.

What is PredictMarket?

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.

Key Features

šŸŽÆ Multiple Market Types

  • 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)

šŸ’° Simple Token System

  • 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

šŸ”® Powered by Chainlink Oracles

  • 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

šŸ“Š Dynamic Odds & Pool-Based Betting

  • 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

šŸ† Fair & Transparent

  • 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

How It Works

  1. Connect Wallet: Connect your Web3 wallet to the platform
  2. Claim Tokens: Visit the faucet to claim free pUSD tokens
  3. Browse Markets: View active markets with live odds and time remaining
  4. Place Bets: Select an outcome and bet your pUSD
  5. Wait for Resolution: Markets resolve automatically using Chainlink oracles
  6. Claim Winnings: If you win, claim your payout with one click

Project Structure

prediction-market/
ā”œā”€ā”€ contracts/         # Smart contracts (Solidity + Foundry)
ā”œā”€ā”€ frontend/          # Web interface (Next.js + TypeScript)
└── automation-service/ # Background service for daily market creation

Deployed Contracts (Sepolia Testnet)

Core Contracts

  • PredictionMarket: 0x27973Aaa8d043a68b6fb448b5A3E78348a70F0d8
  • pUSD Token: 0x8bA038f831116bDFeA3c90c934a94a33c32a98f0
  • Faucet: 0x71a850d8B0a04B2a16a393e737cEF81dA4219d4f

Chainlink Oracles

  • BTC/USD: 0x1b44F3514812d835EB1BDB0acB33d3fA3351Ee43
  • ETH/USD: 0x694AA1769357215DE4FAC081bf1f309aDC325306
  • XAU/USD (Gold): 0xC5981F461d74c46eB4b0CF3f4Ec79f025573B0Ea

Getting Started

Each component has its own setup instructions:

  • Contracts: See contracts/README.md
  • Frontend: See frontend/README.md
  • Automation: See automation-service/README.md

Technology Stack

  • 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

Live Markets

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.

About

prediction-market-nu.vercel.app

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.