Skip to content

Files

Latest commit

d59d567 · Oct 23, 2025

History

History
89 lines (67 loc) · 2.85 KB

File metadata and controls

89 lines (67 loc) · 2.85 KB

DecentraPredict — Open, Trustless Prediction Markets on Solana and EVM

DecentraPredict is a community-first, open-source platform for creating and resolving prediction markets on Solana and EVM. It’s designed for fairness, auditability, and modularity — so anyone can create markets, supply liquidity, or stake tokens on real-world outcomes.


What You Can Do

  • Launch custom markets with clear yes/no (or multi-outcome) questions
  • Provide liquidity to markets and enable smoother trading
  • Bet with tokens and claim proportional rewards when outcomes resolve
  • Use oracle feeds for automated, verifiable resolutions
  • Share and grow via a built-in referral system

Key Highlights

  • Transparent & Permissionless: Smart contracts hold funds and enforce payouts — no trusted middleman.
  • Oracle-Driven Resolutions: Integrates with reliable oracle providers for automated outcome checks.
  • Token-Centric: Supports token staking and payout mechanics, with fee and reward handling.
  • Composability: Built to plug into other Solana and EVM apps and dashboards.

Tech Snapshot

  • Chain: Solana and EVM
  • Contracts: Anchor / Rust / Solidity
  • Frontend: Next.js + Tailwind CSS
  • Backend: Node.js + Express + MongoDB (optional for analytics and UX)
  • Oracles: Switchboard (or alternative oracle providers)

Quick Start (Dev)

Requirements:

  • Node.js v18 or newer
  • Anchor v0.29.x
  • Next.js v15+
  • MongoDB Atlas (optional but recommended for backend data)

Install & run:

git clone https://github.com/0xopsdev/Solana-evm-crypto-Prediction-Market.git
npm ci
# Frontend (development)
npm run dev
# Backend
npm start

Environment variables (backend):

PORT=
DB_URL=
PASSKEY=
FEE_AUTHORITY=

How it flows

  1. Create: A user spins up a market (question, deadlines, outcomes).
  2. Fund: Liquidity providers add funds to improve market depth.
  3. Stake: Participants place bets (Yes / No or outcome-specific).
  4. Lock: Market closes at the stated deadline.
  5. Resolve: Oracle confirms the real-world result.
  6. Payout: Smart contracts distribute rewards to winners proportional to their stake.

Governance & Fairness

The architecture favors transparency: event metadata, oracle calls, and payout calculations are auditable on-chain. Governance (if enabled) can allow the community to update fee parameters or trusted-oracle lists.


Want a Custom Version?

I can tailor the UI, add token integrations, or set up a private deployment for your project. Reach out over Telegram: @NightFly.


Demo / Media

Quick walkthrough: the original guide video is attached to the repo's assets.


License

Open-source — check the repository for the exact license file and contributor guidelines.

🚀 Contact me on telegram

telegram: @its0xopsdev