Dehype | Prediction markets on Solana
  • 👋Introduction
  • How It Works
    • 💡Market Creation & Event Tokenization
    • ✨Trading Outcome Tokens
    • 📑Market Settlement
    • 🚀Liquidity Pump
    • 🪙Memecoin Conversion
    • 🔠Example Scenario
  • Technical Implementation
    • 📪Smart Contracts
  • Tokenomics
    • 🛠️Getting set up
      • 📝Setting permissions
      • 🧑Inviting Members
  • DEHYPE FOR
    • 🎨Investor
    • 🖥️User
  • Page 1
Powered by GitBook
On this page
  • Smart Contracts
  • 3.2 Solana Integration
  • 3.3 Oracle Integration
  1. Technical Implementation

Smart Contracts

Smart Contracts

DeHype's core functionality is implemented through a series of smart contracts on the Solana blockchain. These contracts handle market creation, token minting, trading, settlement, and memecoin conversion.

Key Smart Contracts:

  1. Market Factory: Creates new prediction markets and mints outcome tokens.

  2. Trading Engine: Manages the buying and selling of outcome tokens.

  3. Settlement Contract: Handles market resolution and liquidity transfer.

  4. Memecoin Converter: Transforms winning outcome tokens into permanent memecoins.

  5. Governance Contract: Manages community voting and proposal systems.

3.2 Solana Integration

DeHype leverages Solana's high-speed, low-cost blockchain for several key advantages:

  1. Transaction Speed: Solana's high TPS (transactions per second) ensures real-time trading and instant settlements.

  2. Low Fees: Minimal transaction costs make microtransactions and frequent trading viable.

  3. Scalability: Solana's architecture allows DeHype to handle a large number of concurrent markets and users.

Implementation Details:

  • Use of Solana's Sealevel runtime for parallel smart contract execution.

  • Integration with Solana's SPL Token program for custom token creation and management.

  • Utilization of Solana's Proof of History (PoH) for efficient time-stamping of market events and trades.

3.3 Oracle Integration

DeHype integrates with decentralized oracle networks to ensure accurate and tamper-proof market resolutions.

Oracle Implementation:

  1. Multiple Oracle Support: Integration with various oracle providers (e.g., Chainlink, Pyth) for redundancy and accuracy.

  2. Data Aggregation: Use of multiple data sources to determine event outcomes.

  3. Dispute Resolution: Implementation of a time-locked dispute period for challenging oracle reports.

PreviousExample ScenarioNextGetting set up

Last updated 8 months ago

📪
Page cover image