YES
NO
Kalshi-Style Prediction Market
Smart Contract
Bet on real-world outcomes · Trustless settlement · Proportional payouts
How It Works
1
Deploy
Oracle creates market with a question & deadline (e.g. 7 days)
2
Bet
Anyone sends ETH calling placeBet(YES) or placeBet(NO)
3
Resolve
After deadline, oracle calls resolve(true/false) to settle
4
Claim
Winners call claimWinnings() — payout is proportional to stake
Payout Formula: your_stake / total_winning_pool × total_pool
Key Functions & Why It's Interesting
SOLIDITY FUNCTIONS
placeBet(bool betYes)
Send ETH to back YES or NO
resolve(bool outcome)
Oracle-only — settles after deadline
claimWinnings()
Proportional ETH payout for winners
impliedYesProbability()
Returns live market probability (bps)
WHY IT'S INTERESTING
Watching sports with your paycheck on the line
Imagine yelling BAAAANG and getting a free paycheck.
Crypto instead of dollars
Some investors believe crypto will be worth more than fiat currencies in the future.
Decentralized Payments
Some people didn’t get paid out for predicting the Iran War because the rules changed. Here, there are less government regulations.
Fun way to invest in crypto
People can see why crypto is so powerful. Bets get paid out when conditions are met and not when the bookie wants to… Brings more confidence to crypto assets.