About
Phinary is a prediction market built from Uniswap pools, where betting on binary positions is just a token swap. There are no external oracles, off-chain APIs or order books: it runs entirely on Uniswap pools, and everything a market needs is calculated inside Uniswap v4 hooks.
Each market asks one question, such as "Will ETH be above $2,689.27 at 22:45?", and has two ERC-20 tokens, UP and DOWN, each trading against USDC in its own v4 pool. At expiry the winning token redeems for exactly 1 USDC and the losing one for nothing. Four tracks run on one hook and one vault: ETH and SOL, each with 1-minute and 15-minute markets.
Pricing with Black–Scholes:
The fair price of UP is the probability that the price ends above the strike. PredictionHook computes it on every swap with the Black–Scholes formula for a binary option. All three inputs come from Uniswap itself:
S, the underlying pool's price at the start of the current block; K, the strike, which is the pool's price when the market opened; σ, the volatility, which the oracle hook measures from the same pool's price history over the last 30 minutes. A market settles on the average price over its final 10 or 30 seconds, not on a single instant, so the hook prices exactly that:
UP price = Φ( (ln(S/K) − ½σ²·T_D) / (σ·√T_V) )
Φ is the normal distribution. T_D and T_V are the time to expiry, adjusted for averaging over the settlement window. With no window, this is the textbook binary option price N(d₂). DOWN is priced as the mirror image of UP.
We wanted to make a new financial product available through infrastructure traders already use. Phinary puts option pricing and settlement inside a Uniswap v4 hook, with UP and DOWN positions represented as tradable tokens. Our demo uses a fork of the Uniswap interface to show the full journey from purchase to payout.
Liquidity providers fund the other side. They deposit USDC into a shared vault through the Phinary dashboard and receive shares representing their stake. That vault backs multiple option markets. Its value changes with trading spreads and settlement payouts, so providing liquidity carries risk as well as the opportunity to earn returns.
The current deployment runs on Unichain Sepolia, with one-minute and fifteen-minute options for both ETH and SOL. We also built a TypeScript SDK so other applications can quote and execute trades against the same contracts.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






