Docs

Predict with MUSD.Keep your bitcoin.

MEZONK is a prediction market on Mezo. You back Yes or No on questions with clear rules, and winners are paid in MUSD from money locked the moment their shares were made. These docs explain each part plainly first, then exactly.

What MEZONK is

A prediction market lets people trade on the answer to a question, such as "Will BTC close above $100,000 on Friday?" Every question has two kinds of share: Yes and No. When the answer is known, each winning share is worth exactly 1 MUSD and each losing share is worth nothing. Before that, shares trade between people, and the price of Yes is the crowd's estimate of the chance that the answer is yes.

MEZONK runs that on Mezo, the bitcoin finance network. Everything is priced and paid in MUSD, Mezo's bitcoin-backed dollar. If you hold BTC rather than MUSD, you can borrow MUSD against it inside the app, trade with it, and pay the loan back from your winnings. Your bitcoin is never sold.

The idea in one picture

The whole design rests on one rule: a Yes share and a No share are always created together, from exactly 1 MUSD that stays locked in the contract until the market ends. Look at where the MUSD sits at each step.

How MUSD becomes shares: split, merge and redeem, and why the pool always covers every shareYour MUSDMezonkExchangeYour sharesCollateral poolone per market1 MUSD forevery pair11 MUSDsplit: lock 1 MUSDmint1 Yes1 NoLive markets only21 MUSD1 MUSD backmerge: burn1 Yes1 NoAfter launch, until the outcome is final3Redeem once the outcome is finalFinal outcomeEach Yes share paysEach No share paysYes1 MUSD0No01 MUSDInvalid0.50 MUSD0.50 MUSDAlways trueBefore final: pool = Yes sharesoutstanding = No shares outstanding.After final: pool = what theshares left can still redeem for.Redeeming burns your shares.
  • Mezo contracts
  • MEZONK contracts
  • Yes shares
  • No shares
One MUSD always sits behind each Yes + No pair, so the pool can pay every share whatever the outcome. Fills on the order book mint and merge pairs the same way, so they keep the same balance.

Because of that rule:

  • Winners are always paid in full. The money for every winning share was locked before the share existed.
  • MEZONK never bets against you. You trade with other people. The contract only holds the money and pays it out.
  • Nobody can move your MUSD. The contracts have no upgrade mechanism and no function that lets anyone, including the owner, take collateral. See Trust model.

How the pieces fit

Your wallet talks straight to the contracts on Mezo. The website and its server help you find markets, build orders and read history, but they never hold money and never decide anything. If they went offline, you could still claim from the contract directly.

MEZONK system: browser and wallet, Next.js server, MEZONK and Mezo contracts, market-maker botBrowserMEZONK web appNext.js client · wagmi · React QueryYour walletsigns every transactionsign requestMEZONK server (Next.js)/api routesJSON: lists, books, quotesOrder servicesuggests fill sources onlyPostgresevents + read tablesIndexerembedded, cron or workerfetch JSONquote, bookqueriessigned orderswritesBot host (keeper)Market-maker bot+ keeper for price marketsA separate process with itsown wallet key. Not the server.Mezo chainMezoPriceFeedBTC/USD priceBorrowing contractsBorrowerOperations, TroveManagerMUSDMezo's dollar (ERC-20)MEZONK contractsMezonkMarketFactoryMezonkResolutionMezonkIncentivesMezonkExchangeholds the MUSDMezonkPriceResolversettles BTC price marketsborrowsigned transactionslive reads: stage, balances, claimablelive readsgetLogsplaceOrdersettle()MUSD in and out
  • MEZONK contracts
  • Mezo contracts
  • Wallets and people
  • Off-chain (servers, data)
Every transaction goes from your wallet straight to the contracts. The server indexes events, serves JSON and suggests which orders a trade could fill, but it holds no keys and can't move funds. Balances, stage and claimable amounts are always read live from the chain.

What's live today

Real money

MEZONK is live on Mezo Mainnet (chain 31612). Trades use real MUSD and loans lock real BTC. The contracts have not had an independent audit, so only trade what you can afford to lose. Want to practise first? Switch to Testnet in the header for free test funds.

PartStatus
Order book, seeding and launch, trading, claimsLive on Mezo Mainnet
Resolution with bonds, challenges and an arbitratorLive on Mezo Mainnet
Borrowing MUSD against BTC inside the app, managing the loanLive in the app (uses Mezo's own contracts)
Bet from your loan, repay from winningsLive in the app
BTC price markets settled by Mezo's PriceFeedLive on Mezo Mainnet
BTC up/down rounds, staked in BTCLive on Mezo Mainnet
Resolution and rebate fixes from the KupiaSec reportLive on Mezo Mainnet
Independent security auditNot done

The contract addresses are read from the app's configuration, so the docs always show what the site is actually using.

Where to start