Inspiration

Gemini's prediction market books are still thin, and Gemini says liquidity is its priority. It pays makers through maker rebates, daily Liquidity Rewards (paid on resting orders, even unfilled) and zero maker fees. When we checked the public rewards endpoint on Nov 20, 128 events were paying rewards of up to $150/day each, and the top 20 had zero qualifying makers. Gemini's market maker program is open to institutions only, so a regular user has no way to earn that yield.

What it does

DEPTH is a USDC vault on Arc that funds market-making on Gemini Prediction Markets. Users deposit USDC and get vault shares (ERC-4626). A bot ranks the Gemini events that pay Liquidity Rewards, allocates capital to the best ones and quotes both sides with maker-only orders, earning the spread, rebates and rewards. Depositors keep 80% of the profit; the protocol takes a 20% performance fee above a high-water mark.

How we built it

  • Vault (Solidity, Foundry, OpenZeppelin ERC-4626) on Arc Testnet. totalAssets = idle USDC + capital deployed to the market-making account, so the share price stays correct when capital leaves. The operator moves capital with pullForMM / returnFromMM and marks it to market with reportNAV. The 20% fee is charged only on share-price gains above a per-share high-water mark and paid in newly minted shares. Withdrawals are served from idle USDC. 7 Foundry tests cover fees, NAV, withdrawals and access control.
  • Bot (Python, Gemini Prediction Markets API). It reads /liquidity-rewards/events and scores each event as daily pool / (qualifying makers + 1), skips events ending within 30 minutes and splits capital across the top 5. In each event it picks the contract closest to 50/50, then places a maker-or-cancel buy YES below mid and buy NO at 1 - ask, which quotes both sides without holding inventory. Spread and size follow the rules read from /liquidity-rewards/config (max 10 cents, min 100 contracts). Orders go to the Gemini sandbox. It can also push NAV to the vault on Arc.
  • Frontend (HTML, ethers.js). Deposit, withdraw, TVL, share price, idle and deployed capital.

Arc Testnet deployment

Challenges we ran into

Getting the accounting right. Our first version measured the high-water mark on total assets, so new deposits looked like profit and were charged the fee, and the share price dropped as soon as capital moved to Gemini. We moved to a per-share high-water mark and tracked deployed capital explicitly. We also had to design quotes that stay two-sided without holding YES inventory.

Accomplishments that we're proud of

A vault that is live on Arc Testnet with tested fee logic, and an allocation rule that uses Gemini's own reward data to find pools nobody is collecting.

What we learned

Prediction markets need liquidity more than they need another betting bot. Being on the other side of the book is where the incentives are.

Risks

Adverse selection and inventory risk; rewards Gemini can change or end; capital deployed to market making is held by the operator and its value reaches the chain through reportNAV; pooling capital to trade CFTC-regulated contracts is a commodity pool in the US, so a real launch needs a registered operator or partner.

What's next for DEPTH

Automatic NAV from Gemini positions and payouts, dynamic spreads, on-chain risk limits and a pause switch, and QuickNode Streams to resize quotes as deposits land. Longer term, deeper books make prediction markets usable for real hedging, for example a small manufacturer protecting itself against a copper price spike.

Built With

Share this project:

Updates

Submission history