Pred

Pred brings leverage trading to traditional prediction markets

Pred

Created At

ETHGlobal Cannes 2026

Project Description

Pred brings leverage trading for prediction markets.

Traditional prediction markets are not degen enough. Even if you are sure a market will resolve in a specific way, your lack of liquidity prevents you from earning more.

A market with a 50% happening probability will make you earn 2x at best. What if you could borrow more and open a leveraged position instead?

That's why I built Pred, liquidity providers lend money to prediction market traders.

Whenever a user opens a position, Pred simultaneously opens a matching position in real time using borrowed assets from liquidity pools. A hedge engine balances the exposure by equalizing the amount of YES and NO tokens for that specific market, ensuring neutrality. After the market resolves, the system secures liquidity and repays the borrowed funds.

Users can deposit and withdraw stablecoins, provide liquidity to pools with a minimum 2% APY, and trade with up to 3× leverage on both YES and NO positions.

How it's Made

The platform is a monorepo with four main parts.

The frontend is a Next.js 16 app with React 19, Tailwind CSS v4, and Privy for wallet auth. Real-time position updates come through Socket.IO. Charts use TradingView's Lightweight Charts.

The backend runs Express 4 on Node.js with MongoDB via Mongoose. Ethers.js 6 handles all on-chain interactions. Socket.IO pushes live data to the client.

Smart contracts are Solidity 0.8.34, built with Hardhat and OpenZeppelin for access control and security. Uniswap V3 is integrated for USDC swaps. Everything is deployed on Polygon Mainnet.

We use Chainlink CRE (Chainlink Runtime Environment) to run decentralized TypeScript workflows compiled to WASM on Chainlink's oracle network. A cron workflow paginates through Polymarket's Gamma API every 2 hours to discover and sync new markets. Other workflows handle circuit-breaking and rebalancing via HTTP triggers.

On the hacky side: Polymarket's CLOB API is geoblocked, so all order placement goes through rotating US proxies via https-proxy-agent. We also built an optimistic settlement flow. Leveraged bets are placed on Polymarket instantly using pre-funded USDC.e. Margin locking, LP pool borrowing, and native USDC-to-USDC.e Uniswap swaps all run in the background. If the CLOB order fails, everything rolls back automatically.

background image mobile

Join the mailing list

Get the latest news and updates

Pred | ETHGlobal