How Winners Are Determined
Proteus uses Levenshtein distance (edit distance) to score predictions. This is calculated on-chain for full transparency and determinism.What is Levenshtein Distance?
Levenshtein distance measures the minimum number of single-character edits (insertions, deletions, substitutions) needed to transform one string into another. Example:Market Resolution
Oracle Submits Actual Text
The contract owner (oracle) calls Only the oracle can resolve markets (centralized in v0).
resolveMarket with the actual text:Tie Breaking
If multiple submissions have the same distance:On-Chain Levenshtein Implementation
The contract includes a full Levenshtein distance implementation:Minimum Submissions Rule
Claiming Your Payout
Payout Calculation
Platform Fee
| Recipient | Share | Amount (of 7%) |
|---|---|---|
| Genesis NFT Holders | 20% | 1.4% of volume |
| Oracles | 28.6% | 2.0% of volume |
| Market Creators | 14.3% | 1.0% of volume |
| Node Operators | 14.3% | 1.0% of volume |
| Builder Pool | 28.6% | 2.0% of volume |
Example
Smart Contract Method
Events
MarketResolved
PayoutClaimed
Checking Winnings
Query Your Submissions
Worked Example
Null Case Handling
If the actor doesn’t post during the market window:__NULL__ win with distance 0.
Security Features
ReentrancyGuard
Pull-Based Fees
Troubleshooting
- Not Winning Submission
- Already Claimed
- Market Not Resolved
Emergency Withdrawals
If oracle fails to resolve after 7 days:Next Steps
After claiming:- Check BaseScan for transaction confirmation
- Verify ETH arrived in your wallet
- Consider reinvesting in new markets
Create New Market
Use your winnings to create new prediction markets
View Leaderboard
See top predictors and their performance