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
Market Closure:
The function can only be triggered after the market’s expiration time.
No further trading is allowed once the market is resolved.
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.
Winning Outcome Selection:
The winning outcome (e.g., "YES" or "NO") is recorded in the smart contract.
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.
Last updated