Predict

Prediction market, stores information on ENS and resolves the market via Uniswap.

HackMoney 2026Shipped January 30, 2026Prize winner Dormant#defi#identity#prediction-markets#ethereum
Visit Repo
Predict banner

About

A decentralized prediction market platform on Uniswap v4 and ENS integration. Users create and trade on binary outcome markets (YES/NO) with human-readable ENS names like btc-100k.predict.eth. The platform addresses MEV and information asymmetry in prediction markets through cryptographic commitments and batch settlement, while using ENS for discoverability and trust.

How it's made

Hooks use Uniswap v4's permission system to intercept pool operations. They implement beforeSwap, beforeAddLiquidity, and beforeInitialize to enforce market rules (expiry checks, resolution status). Each market is a Uniswap v4 pool with YES/NO outcome tokens as the trading pair, using the hook address in the PoolKey to route operations. ENS Integration: Market metadata is stored in ENS text records under predict.eth subdomains. The @hack-money/ens package uses viem's namehash and direct resolver calls to read/write records. Market discovery works by resolving ENS names to text records containing pool addresses, oracles, and expiry timestamps. The SubdomainRegistrar contract enables one-click subdomain claiming for market creators. Uniswap: The platform uses Uniswap v4's hooks architecture to make each prediction market a native AMM pool. Each market is a Uniswap v4 pool where YES and NO outcome tokens form the trading pair. The PoolKey includes the hook address, routing all pool operations (swaps, liquidity provision) through our PredictionMarketHook. Markets inherit Uniswap's liquidity mechanics—users can swap between YES/NO tokens at market-driven prices, and liquidity providers can earn fees. The hook intercepts operations via beforeSwap, beforeAddLiquidity, and beforeInitialize to enforce market rules: blocking trades after expiry, preventing operations on resolved markets, and ensuring proper initialization. Native ETH is used as collateral throughout, with the hook's betOnOutcome accepting msg.value directly and minting outcome tokens 1:1 with ETH deposited. The hook's permission flags are encoded in its deployment address's least significant bits, enabling Uniswap v4 to determine which hook functions to call. We use Uniswap v4's singleton PoolManager for all markets, so each market shares the same liquidity infrastructure but maintains isolated state via PoolId hashing, keeping gas costs low.

Prizes

  • ENS · Integrate ENS · Integrate ENS

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

DormantLast push 302 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

IntraCloud

Autonomous agent that analyzes Uniswap pools and deploys TWAP-resolved prediction markets on-chain.

Predictly

A decentralized prediction market built on Celo, leveraging Pyth for accurate price feeds and integrated with Celo's Minipay for seamless microtransactions. Users can predict crypto prices, buy/sell shares, and earn rewards in a fair, transparent, and fully on-chain environment.