Build parlays on any prediction markets you’re browsing, priced live and backed by an LP vault.
Prediction markets like Polymarket and Kalshi now offer parlays, but mostly on sports and only in combinations they choose to list. If you believe a crypto price target, an election result and a tech launch will all happen, you still have to buy three separate positions and get three small payouts. Prediction markets can’t list every possible combination: that would fragment liquidity and multiply market-maker risk.
ParlayKit lets you combine any bets on any market: politics, crypto, sports, culture, all in one parlay. It is a venue-agnostic browser extension. You browse a prediction market as usual, and ParlayKit detects every market on screen and pops up an offer to combine them. You tap Yes/No on any two or more markets and watch the combined probability, odds and payout update live from the venue’s order book. Then you place the parlay from your own wallet in one transaction. The venue doesn’t need to list anything or change anything.
Venues plug in through lightweight adapters: one finds the markets on the page, one reads their prices and resolution data. v1 ships with a Polymarket adapter and a demo venue. One liquidity pool backs every combination on every supported venue.
Each leg is priced at its live best ask, which is what buying that leg alone would cost. In v1 the parlay price is the product of the leg prices plus a small per-leg house edge. This is the independence special case of the ParlayMarket automated market maker (Rana et al., 2026). In v2 we plug in its pairwise model to price correlated legs coherently from the same pool.
The counterparty is an ERC-4626 vault anyone can deposit USDC into. LPs earn the house edge on losing parlays and pay out winners. On-chain risk limits keep the vault solvent: a per-parlay risk cap, a utilization cap, and withdrawal caps that keep potential payouts reserved. Each parlay is a transferable ERC-721 ticket.
Settlement is permissionless. The contract reads the same on-chain resolution data the venue pays out from. A losing leg settles the parlay immediately, a 50/50 market pays half, and a full win pays whoever holds the ticket.
The main idea comes from my research paper ParlayMarket (published in AFT2026) that allows pricing the parlays.
Now about the technical parts: ParlayKit has three parts: Solidity contracts, an off-chain quoter, and a Chrome extension. A plug-in venue-adapter layer runs through all three.
Contracts (Solidity 0.8.26, Foundry, OpenZeppelin v5), deployed on Polygon Amoy.
ParlayEngine takes an EIP-712 signed quote. The quote binds the buyer, the stake, the legs (each a market id, an outcome and a price), a 90-second deadline and a single-use nonce. The engine doesn’t just trust the quote. It re-prices the parlay on-chain (product of leg prices × (1 + edge)), rejects duplicate or already-resolved markets, and checks vault risk limits. Then it moves the stake into the vault and mints the parlay as a transferable ERC-721 ticket. settle() is permissionless. It reads each leg’s payout vector from the Conditional Tokens contract the venue settles on, and pays maxPayout × Π(numerator/denominator). That one formula handles full wins, early settlement on any losing leg, and 50/50 resolutions. ParlayVault is ERC-4626 with two extra ledgers. pendingPremium keeps open stakes out of the share price until they settle. lockedPayout caps LP withdrawals so a winner can always be paid. 14 Foundry tests, including a fuzz test that the house never pays more than the fair independent payout.
Quoter (Node + ethers v6). Venue sources turn what the extension found on the page into markets, outcome ids and live order-book prices. The Polymarket source reads the Gamma API and prices each leg at the outcome’s best ask, i.e. what buying that leg alone would cost. The quoter’s BigInt pricing math matches the contract’s bit for bit, so the payout the user sees is exactly what the contract pays. It never trusts prices sent by the client: it re-reads them, rejects resolved markets and correlated same-event legs, signs the quote, and dry-runs the exact transaction with eth_call before returning ready-to-send calldata.
Extension (Chrome MV3, zero-dependency vanilla JS). Site adapters find the markets visible on any page, from event pages to category feeds, so the “combine these” pop-up works wherever you’re browsing. The UI is rendered inside a Shadow DOM so it never clashes with the host site. A tiny script running in the page’s own context bridges to the user’s wallet (window.ethereum) over postMessage, so the extension never touches keys. It handles network switching, USDC approval, buying, claiming, and LP deposit/withdraw.
Pricing roadmap. v1 uses the independence special case of the ParlayMarket AMM (Rana et al., 2026). The pricing is isolated in one function, and the contract already accepts a signed per-leg price vector, so the pairwise correlation model can be dropped in without contract changes.
Hacky bits. The quoter returns fully encoded calldata, so the extension needs no ABI library and no bundler: load it unpacked and it runs. We built a fictional demo venue plus a dev-wallet shim that routes to a local test chain (anvil), which let us test the whole flow (LP deposit → quote → buy → forged-signature revert → resolve → claim) in headless Chrome without MetaMask. On testnet, a mock Conditional Tokens contract exposes the exact getters of the real one, so going to mainnet is just swapping two addresses.
AI tools. We used Claude as an agentic coding assistant to generate the contracts, quoter, extension and docs from our spec, and to run the test suites. Details are in AI_USAGE.md.

