Prophecy Docs
AboutTrade Now
  • Welcome to Prophecy
  • About Prophecy
  • What is AMM-Based Market?
  • Advantages of AMM-Based Markets in Prophecy
  • Buy Trades
  • Sell Trades
  • Resolve Market
  • Claim Market
  • Create Market
  • Getting Started
    • Quickstart
    • Publish your docs
  • Web & Mobile Apps
    • Sign Up for Prophecy.bet
    • Wallet Section Overview
    • Market Creation
    • Trade Tokens
    • User Market
    • Market Positions
    • Referral Reward
    • User Profile
Powered by GitBook
On this page

Resolve Market

Purpose

The Resolve function finalizes a prediction market by determining the outcome of the event. It ensures that all trades are locked and the winning outcome is identified based on reliable data sources (e.g., oracles).

Workflow

  1. Market Closure:

  • The function can only be triggered after the market’s expiration time.

  • No further trading is allowed once the market is resolved.

  1. Outcome Verification:

  • The function fetches the event outcome from a trusted decentralized oracle or pre-defined resolution source.

  • Example: For a sports market, the oracle may confirm the final score.

  1. Winning Outcome Selection:

  • The winning outcome (e.g., "YES" or "NO") is recorded in the smart contract.

  1. State Update:

  • The market status is updated to Resolved, making it eligible for the Claim process.

Key Features

  • Decentralized Oracle Integration: Ensures tamper-proof and accurate outcome resolution.

  • Immutable Records: Once resolved, the outcome is stored immutably on the blockchain.

PreviousSell TradesNextClaim Market

Last updated 5 months ago