-
Notifications
You must be signed in to change notification settings - Fork 1
✨ Add Multi-Outcome Market Support #44
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Currently the platform only supports binary (Yes/No) markets. The market-multi.clar contract exists but is not integrated with the frontend.
Current State
contracts/market-multi.clarexists for multi-outcome marketstests/market-multi.test.tsexistsscripts/multi-outcome-trading.tsexists- Frontend only supports binary markets
Proposed Features
1. Multi-Outcome Market Display
Instead of just Yes/No, show multiple outcomes:
Who will win the 2026 World Cup?
├── 🇧🇷 Brazil - 35%
├── 🇫🇷 France - 28%
├── 🇦🇷 Argentina - 22%
├── 🇩🇪 Germany - 10%
└── 📦 Other - 5%
2. Multi-Outcome Trading
- Select from multiple options
- Dynamic odds calculation
- Same stake/claim mechanics
3. Market Type Indicator
- Binary markets: Standard Yes/No UI
- Multi-outcome: Expandable options list
4. Create Multi-Outcome Markets
- Add outcomes (min 3, max 10)
- Set initial odds (optional)
- Set resolution criteria
UI Mockup
┌─ Multi-Outcome Market ───────────────────┐
│ Who will win the 2026 World Cup? │
│ │
│ ○ 🇧🇷 Brazil 35.2% [Stake] │
│ ████████████████░░░░░░░░░░░░ │
│ │
│ ○ 🇫🇷 France 28.1% [Stake] │
│ █████████████░░░░░░░░░░░░░░ │
│ │
│ ○ 🇦🇷 Argentina 22.0% [Stake] │
│ ██████████░░░░░░░░░░░░░░░░░ │
│ │
│ Total Pool: 1,245 STX │
└──────────────────────────────────────────┘
Files to Create/Modify
frontend/src/types/market.ts- Add multi-outcome typesfrontend/src/hooks/useMultiMarket.ts(new)frontend/src/components/MultiOutcomeCard.tsx(new)frontend/src/pages/MultiTradePage.tsx(new)- Connect to
contracts/market-multi.clar
Priority
🟢 Low - Advanced feature for future
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request