hackquest logo

Just a bet

A decentralized peer-to-peer betting platform built on Mantle Sepolia testnet with AI-powered risk validation, liquidity pools, and dispute resolution through a decentralized judge system.

视频

描述

MVP = https://just-a-bet.vercel.app/

Just a bet is a decentralized peer-to-peer betting platform built on Mantle Sepolia testnet with AI-powered risk validation, liquidity pools, and dispute resolution through a decentralized judge system.

Just-a-Bet is a trustless betting platform that enables users to:
- Create and accept P2P bets with collateral
- Bet against the house using AI-validated odds
- Provide liquidity and earn yield from betting fees
- Resolve disputes through a decentralized judge system
- Register unique usernames on-chain

Architecture

## ✨ Key Features

### 1. **Dual Betting Modes**- **P2P Bets**: Create custom bets with any opponent- **House Bets**: Bet against the platform with AI-validated odds and liquidity from CDO pools

### 2. **Category-Specific Liquidity Pools**
Four specialized CDO (Collateralized Debt Obligation) pools:
- **Sports** (NBA focus)
- **Crypto** (BTC focus)
- **Politics**- **General**

Each pool offers:
- 4 lock-up tiers (Flexible, 30d, 90d, 365d)
- APY boosts for longer locks
- Automated yield generation
- Tradeable CDO tokens

### 3. **AI-Powered Risk Validation**- Real-time odds calculation for house bets- Risk assessment based on bet category, amount, and pool liquidity
- Automatic bet approval/rejection based on risk thresholds

### 4. **Decentralized Dispute Resolution**- **Judge System**: Community-elected judges with voting power- **24-Hour Dispute Window**: Time for parties to challenge outcomes
- **Multi-Judge Voting**: Requires consensus for final resolution
- **Transparent Process**: All dispute reasons and votes on-chain

### 5. **Username Registry**- On-chain username registration (3-32 characters)- Unique, transferable identities
- Username resolution for addresses
- Profile metadata support

### 6. **Bet Resolution Flow**```
Active Bet
    │
    ├──> Expires
    │      │
    │      ├──> Party A Declares Outcome
    │      │       │
    │      │       ├──> 24h Dispute Window
    │      │       │      │
    │      │       │      ├──> No Dispute → Finalize → Resolved
    │      │       │      │
    │      │       │      └──> Dispute Raised → Judge Vote → Resolved
    │      │       │
    │      │       └──> Winner Claims Funds
    │      │
    └──> Cancelled (if unfunded)
```

本次黑客松进展

During the Hackathon: - The Just a bet idea was birthed and refined - Tech Infra and development took place during the course of the Hackathon

技术栈

React
Next
Web3
Solidity
Ethers
Node
Thirdweb
队长
KKitchens
赛道
DeFiGaming