Intuition Prediction Market
PROJECT LINK: https://prediction-market.intuition.box/
GITHUB LINK: GitHub - intuition-box/prediction-market
DISCORD HANDLE: FLAMIINNGO
What I Built
I created a decentralized prediction market that runs on the Intuition Network testnet. Think of it like a betting platform where users can make predictions about future events and win Tinu tokens if they’re right.
The Main Idea
The platform works like a traditional betting house, but everything happens on the blockchain. I (as the house) create predictions with fixed odds, and players can bet on whether they think the prediction will come true or not.
Key Features I Implemented
House System
-
Only I can create and resolve predictions (using my specific wallet address)
-
I set the odds for each prediction (like 2.0x for Yes, 1.8x for No)
-
Players can only bet, not create predictions
Tinu Token Integration
-
Everything runs on Tinu tokens - no real money involved
-
Built-in faucet gives users 1000 tokens every 24 hours
-
All betting and payouts happen automatically through smart contracts
�� User Experience
-
Clean, modern interface that works on mobile and desktop
-
Quick bet system for easy betting
-
Real-time balance updates and prediction tracking
-
Modal windows for detailed betting with potential winnings calculator
Technical Details
I built this using:
-
Smart Contracts: Two Solidity contracts (TinuToken and PredictionMarket) optimized for low gas fees
-
Frontend: Pure HTML/CSS/JavaScript with Web3.js for blockchain interaction
-
Network: Intuition Testnet with tTRUST for gas fees
What Makes It Special
Unlike other prediction markets, this one has a clear house vs. player structure. I control the predictions and odds, while players focus on betting. The fixed odds system makes it simple and transparent - no complex market dynamics to understand.
Real-World Use
Users can bet on things like:
-
“Will Bitcoin reach $100k this year?”
-
“Will INTUITION GO MAINNET?”
The platform handles all the technical complexity behind the scenes, so users just need to connect their wallet and start betting.
Challenges I Solved
-
Gas Optimization: Made the contracts efficient to keep transaction costs low
-
User Experience: Created intuitive interfaces for both house and player roles
-
Token Integration: Seamlessly integrated the Tinu token system
-
Responsive Design: Made sure it works well on all devices
Live Demo
The platform is fully functional and deployed on Netlify. Users can connect their MetaMask wallet, get Tinu tokens from the faucet, and start betting on predictions immediately.
This project shows how blockchain technology can create engaging, transparent betting experiences that are accessible to everyone.