Inspiration
During the Pacific Palisades wildfires, homeowners struggled to obtain coverage as insurers pulled out of high-risk areas.
Insurance is fundamentally a pricing and capital allocation problem. Prediction markets already allow people to collectively price the probability of future events. I wondered whether the same market structure could price and fund insurance.
What it does
MetrEx is a decentralized exchange that combines parametric insurance with prediction markets.
Each market represents a real property, a natural disaster, a monthly coverage period, and an objectively measurable event trigger. Participants trade YES and NO shares, with each winning share paying $1 at settlement.
If wildfire YES shares trade at 4 cents, a homeowner can purchase $50,000 of protection for $2,000. Traders taking the opposite position contribute the remaining $48,000, assuming complementary prices.
If the event trigger is met, the homeowner receives $50,000. Otherwise, NO holders receive the collateral, earning the equivalent of the homeowner's premium.
Instead of centralized underwriting, the market determines the price of risk. Instead of claims adjusters, settlement relies on objective disaster data.
This could reduce administrative costs, accelerate payouts, and expand coverage where traditional insurers are unwilling to operate, while creating new financial instruments for traders.
How I built it
I built a fully collateralized exchange on Solana using Rust, Anchor, TypeScript, Next.js, and Phantom.
Every YES and NO share pair is backed by $1 locked in a smart contract, with continuous trading through an on-chain order book.
I implemented four markets using real residential properties and publicly available government disaster datasets:
- NIFC WFIGS Interagency Perimeters
- NOAA National Hurricane Center Best-Track GIS
- USGS ShakeMap
- NOAA NWS Damage Assessment Toolkit (DAT)
Settlement datasets and rules are cryptographically committed on-chain using SHA-256 before trading begins. At settlement, an oracle verifies the dataset's integrity, evaluates the event trigger against the property's coordinates, and submits the outcome to the smart contract. Winning shareholders redeem their payouts directly through their wallets.
To simulate an active economy, I developed 100 autonomous traders with independent Solana wallets, finite capital, and diverse trading strategies, alongside adaptive market makers.
The demo uses historical disaster replays and simulated USD on Solana Devnet. Every executed trade, collateral deposit, settlement outcome, and payout is publicly verifiable.
Challenges I ran into
An exchange without participants is an empty order book. I had to simulate a functioning economy with independent traders, diverse strategies, and responsive market makers rather than fabricate market activity.
I also had to translate different geospatial disaster datasets into deterministic settlement conditions while maintaining full collateralization throughout trading, settlement, and redemption.
Accomplishments that I'm proud of
- Building a fully collateralized, continuously tradable exchange on Solana from scratch.
- Implementing four disaster markets using real properties and government datasets.
- Developing 100 autonomous traders with independent blockchain identities and trading strategies.
- Verifying end-to-end trading, oracle settlement, and Phantom payouts on Devnet.
- Building a publicly auditable ledger of trades, positions, profits, losses, and payouts.
What I learned
Insurance requires three fundamental mechanisms: pricing uncertainty, allocating risk capital, and enforcing payouts.
Prediction markets enable collective price discovery, parametric insurance defines objective payout conditions, and blockchain enforces collateralization and settlement.
I also learned that liquidity, capital efficiency, and event contract design are just as important as the underlying exchange infrastructure.
What's next for MetrEx
Beyond home insurance, I want to expand MetrEx into enterprise risk protection.
Businesses face financial losses from external events beyond their control, including natural disasters, elections, geopolitical conflicts, and supply chain disruptions.
A beach resort loses revenue when a hurricane disrupts tourism. A freight company faces higher operating costs if the Strait of Hormuz is shut down. A manufacturer may suffer losses following an election that leads to unfavorable trade policies.
Traditional insurance often struggles to cover these unconventional risks. MetrEx could allow businesses to hedge against specific, objectively verifiable events while giving traders new financial instruments through which to assume and trade that risk.
The long-term vision is to create an open market for economic risk, where measurable events with financial consequences can become tradable protection contracts.
Built With
- anchor
- geojson
- next.js
- phantom
- rust
- solana
- typescript
