Documentation Index
Fetch the complete documentation index at: https://prophet.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
After a market resolves, participants with winning positions can redeem their shares for USDT. The entire process is on-chain — the oracle agent handles position reveal, and you trigger your own redemption with a single transaction.The Resolution to Redemption Timeline
Redeeming Winning Shares
Wait for Resolved status
Navigate to your market. The status badge shows the current phase: Open → PendingResolution → Challenged → Resolved.When the status is Resolved, redemption is available.
Check your position
The trade panel shows:
- Your YES shares (if you bought YES)
- Your NO shares (if you bought NO)
- The final outcome (YES or NO)
- Your estimated payout
Click Redeem
If you have winning shares, a “Redeem Winnings” button appears. Click it and confirm the transaction in MetaMask.The contract calls
redeemWinningShares() which transfers your USDT directly to your wallet.redeemWinningShares Function
- Verifies the market is
Resolved - Reads your winning share balance from the PositionVault reveal data
- Calculates your payout:
(your winning shares / total winning shares) * (pool - fees) - Transfers USDT to your wallet
- Burns your winning shares (prevents double redemption)
What Happens If You Hold Losing Shares
Losing shares (YES shares on a NO resolution, or NO shares on a YES resolution) are worth $0.00. You do not need to do anything with them. They remain in your balance as zero-value tokens. You cannot redeem losing shares —redeemWinningShares() checks your revealed position and only pays out if you were on the winning side.
Cancelled Markets: redeemCancelledShares
If a market is cancelled (not resolved YES or NO, but cancelled due to an unresolvable question or oracle failure), every participant gets their USDT back regardless of which side they were on.- Your original USDT deposit into the AMM
- Minus any fees already collected at trade time
Fee Deductions
Your payout is the winning pool minus protocol fees. The fee structure:| Fee | Who Receives It | What It Funds |
|---|---|---|
| Oracle fee | Oracle agent wallet | 0G Compute inference costs |
| Market-maker fee | LiquidityPool | Protocol-owned liquidity replenishment |
| Protocol fee | Treasury address | Protocol development and operations |
Reading the Oracle’s Reasoning
After resolution, the oracle’s full reasoning is permanently stored on 0G Storage and accessible through the market page.- Navigate to the resolved market
- Click “View Oracle Reasoning”
- The app fetches the reasoning blob from 0G Storage via
/api/og-storage?hash=0x... - You see the model’s full chain-of-thought: what evidence it found, what sources it checked, its confidence score, and why it chose YES or NO
Troubleshooting
The Redeem button is grayed out
The Redeem button is grayed out
I have winning shares but the payout shows $0
I have winning shares but the payout shows $0
My USDT balance did not increase after redemption
My USDT balance did not increase after redemption
Check the transaction on 0G ChainScan. If the transaction succeeded, your balance should have updated. You may need to add the USDT token to MetaMask manually (token address:
0xc2B0D2A7e858F13B349843fF87dBF4EBF9227F49, decimals: 6).The market shows Cancelled — can I get my money back?
The market shows Cancelled — can I get my money back?
Yes. Click “Redeem Cancelled Shares” (instead of “Redeem Winnings”). You will receive your original USDT back minus any fees taken at trade time.
Next Steps
Create Another Market
Deploy a new prediction market on any topic
Understand Resolution
Deep dive into how the AI oracle determines outcomes