About
Underlay is an onchain risk underwriting protocol built on Base Sepolia. Traders combine multiple Polymarket prediction market outcomes into a single multi-leg position — odds multiply across legs, and the combined risk is priced by a live LLM running on the 0G Compute network. The AI's reasoning and audit receipt are pinned permanently to 0G Storage as a Merkle root hash, which is written onchain with every position.
The protocol is underwritten by a community ERC-4626 vault. LPs deposit USDC, idle capital routes to Aave V3 for yield, and a reserve split underwrites winning payouts. When traders lose, stakes sweep into the vault and LP share price appreciates. When traders win, the reserve pays out — up to a configurable max payout ceiling.
Settlement runs through Chainlink CRE. A keeper workflow polls open positions, checks each leg against the Polymarket CLOB API for resolution, and calls resolveLeg onchain when a market closes. Once all legs resolve and a position is marked WON, a risk-tier delay window starts — 30 seconds for low risk, 60 for medium, 120 for high — enforced by SettlementManager before payout executes. The CRE workflow also cross-references crypto market outcomes against Chainlink ETH/USD and BTC/USD price feeds.
Sybil resistance is enforced via World ID — stakes above a configured threshold require a valid zero-knowledge proof verified onchain through Worldcoin's IWorldID contract, with nullifier tracking to prevent replay.
Underlay is fully onchain with no opaque backend logic. Every position has an audit trail.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






