Insurevex

Crash insurance for any stock, funded by savers who always get their money back.

Insurevex

Created At

ETHGlobal Mumbai

Winner of

Whitechain

Whitechain - Tokenize · Real World Finance on Whitechain

Project Description

Half of investors think AI is a bubble; the other half think it's too big to fail. Both are nervous. Stock owners are sitting on gains that one bad week can wipe out, and real crash protection (options) is complex, pricey and mostly limited to US stocks at big brokers. Savers want their money back for sure, but bonds alone pay little.

InsureVEX connects three people who need each other:

PROTECT: anyone who owns a stock on any of 23 exchanges (Nasdaq, NSE, Tokyo, London, Hong Kong…), at any broker or as a tokenised share, pays a small weekly fee. If the stock falls more than 3% that week, they get paid the extra fall, up to 10%, settled in stablecoins minutes after the official close.

SAVE: savers, family offices and DAO treasuries deposit into a 3-year note. About 89% buys tokenised government bonds that grow back to exactly the full deposit by the end date: that's the guarantee, and it never touches the stock market. The other ~11% joins the pool that pays for crashes, and the stock owners' fees come back to savers as bonus payments.

EARN: risk-takers add first-loss capital. They collect more of the fees and pay first when a crash hits, so savers don't.

Every payout is locked away the moment protection is sold, so the pool can never promise money it doesn't have. You can only protect shares you actually own. Nobody borrows, nothing gets liquidated, and there are hard caps per stock and per country.

Results:

  • 25-year backtest, 543 stocks, 23 markets: no saver ever got back less than they put in (every start month since 2005, at the real interest rates of the time, including the near-zero years). The pool made 8.8%/yr on years the model had never seen; pricing came within 2% of actual payouts; cover is ~8% cheaper than listed options. Example: $10k of NVIDIA in the DeepSeek week lost $1,581; with a $100 protection, $600.
  • On-chain big test (Hedera testnet, test dollars): $15B saved, $650M of risk capital, $6.48B of stock protected across 9 countries, 109 transactions. We replayed the COVID crash week: $222.8M was paid to stock owners, the risk-takers absorbed all of it, and savers lost $0. Every number and transaction is at insurevex.vercel.app/admin.

Live on three testnets: Whitechain (official test USDT, full lifecycle through maturity), Hedera (tokenised NVIDIA and the note as a tokenised bond via Asset Tokenization Studio, a bonus paid by Hedera's Schedule Service with no keeper, and an x402 agent that buys cover by itself) and Arc (USDC as money and gas, built and security-reviewed in Arc Studio). Testnet only: bond custody is simulated, and we document every limitation in the README.

How it's Made

Contracts (Solidity 0.8.24, OpenZeppelin 5, Hardhat): six contracts deployed and verified on all three chains. IdentityRegistry (ERC-3643-style KYC, country, freeze, blocked jurisdictions) gates everything. ProtectedNote splits each deposit in one transaction: floor = face/(1+r·τ) into TBillVault (tokenised T-bill with NAV and attested reserve), the rest into UnderwritingPool, an ERC-4626 senior tranche plus a Pro first-loss tranche with per-epoch shares. CoverMarket sells crash floors from EIP-712 quotes signed by our pricing server, checks insurable interest (an on-chain ATS token balance, or a signed broker-holdings attestation), locks the max payout via the pool's reserve and per-stock/per-country caps, and settles from PriceOracle official closes. Undeliverable payouts (e.g. a USDT-blocklisted wallet) become claimable "owed" balances, so settlement can never be blocked. 12 contract tests.

Pricing (Python → Node): we backtested 12 pricing models on 25 years of daily closes for 543 stocks in 23 markets (pandas, Yahoo prices, FRED Treasury yields), with walk-forward selection so every year is scored on data the model never saw. The winner (pooled global tail distribution × mean-reverting volatility × per-market credibility factor) is exported as tables and runs in the Node/Express server, which signs quotes, converts every local-currency close to USD, refuses cover on stocks already in free fall, and runs a keeper that posts closes, settles policies, pays coupons and rolls the T-bill NAV.

Frontend: Next.js, wagmi/viem, RainbowKit, Recharts. Pages for Protect, Save, Pool, Research, an Issuer compliance console and /admin, which reads the stress test straight from the chain.

Partner tech:

  • Whitechain: every payment (subscription, premium, payout, coupon, redemption) in the official test USDT; a demo note ran to maturity (2 USDT in, 2.000026 back).
  • Hedera: Asset Tokenization Studio issued a tokenised NVIDIA equity (ERC-1400, ISIN, KYC, freeze) whose balance CoverMarket reads on-chain as proof of ownership (over-coverage reverts), and our note as an ATS bond with a coupon schedule. The Hedera Schedule Service (HIP-1215) executed coupon payments with no keeper. An x402 agent pays a 0.01 HBAR underwriting fee over HTTP 402, validates the signed quote and buys cover within budgets, with an HCS spending-audit anchor.
  • Arc: USDC is both money and gas. Arc Studio wrote its own version of our six contracts with 263 forge tests and two security reviews; its 4 findings became our v3 fixes, each with a regression test.

Hacky bits worth mentioning:

  • The $15B stress test deploys a separate suite with a test-only mintable dollar, drives 8 wallets in parallel, prices every cover live, then has the oracle post each stock's real return from the replayed historical week, so the COVID crash ran on-chain in 12 minutes. It is resumable after RPC drops.
  • Hedera's Hashio relay rejects batched eth_getLogs and under-estimates gas on multi-contract calls, so we unbatch, pad gas, and run a multi-RPC failover provider (Chainlist endpoints + Alchemy) that benches endpoints returning rate-limit or plan errors.
  • A browser test caught foreign stocks sized in local currency as if USD (1 Reliance share became ~94× too much cover); the server now converts at live FX and caps cover at the shares' USD value.
background image mobile

Join the mailing list

Get the latest news and updates

Insurevex | ETHGlobal