Underlay

Underlay: onchain risk vault where traders combine Polymarket legs, priced by 0G AI, settled by CRE.

Visit Repo
Underlay banner

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.

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?

Not checked yet.

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.

The Arena

The Arena : P2P USDC prediction markets on Base & Arc. Humans + AI. No house. on chainlink oracles