Documentation
How Insure works
Insure is parametric insurance: instead of assessing damage, each policy pays a fixed amount when a measurable event happens. That makes it fast and cheap — and it means the rule and the data are everything, so both are public.
Who does what
Underwriters create a vault, set the rule (threshold, window, region), the premium and the payout, and deposit USDC. They earn a fee on every premium and keep what's left after the vault expires.
Policyholders buy a policy by choosing their farm location or flight. That choice is locked into the policy.
The oracle is a service that, when a claim is filed, fetches the relevant data, applies the vault's rule and signs the settlement.
Drought cover
A drought vault says: “pay $X if any N-day stretch of rain at your farm is below T mm during coverage.”When you file a claim, the oracle sums the daily rainfall at your pinned location over the N full days before you filed (or before your paid coverage ended, if you file in the 7-day grace period) and pays if the total is below T.
- Data: Open-Meteo — recent days from its analysis models, older days from the ERA5 reanalysis archive.
- Premiums are monthly. You can renew up to 10 days after your coverage lapses.
- Each vault only covers farms inside its region, so a vault priced for one climate can't be bought for a much drier one.
- Before buying, the vault page replays the rule over the past 10 years at your pin so you can see how often it would have paid.
Flight-delay cover
A flight vault pays if your flight is cancelled, diverted, or its departure or arrival is late by at least the vault's threshold. An early arrival doesn't cancel out a late departure.
- Data: AeroDataBox and/or Aviationstack, matched on the exact flight number and scheduled departure date.
- You must buy before your flight date starts (UTC), and you can file from the flight date onward.
- If the flight hasn't landed yet and hasn't hit the threshold, the oracle waits and re-checks automatically.
The oracle & trust model
Settlement can only be signed by one oracle key, registered on-chain by the program's upgrade authority. You are trusting that key to apply the published rule honestly. In exchange, every decision is checkable: the measured value and the SHA-256 of the evidence bundle are stored on the claim, and the bundle itself is public.
The payout decision is plain code — never an AI verdict. An AI model (Gemini) is only used to read messy flight-API responses when the parser can't (its output is then checked and run through the same rule) and to write a plain-English explanation.
If no usable data appears within 72 hours of filing, the claim is rejected so the vault isn't frozen — and you can file again.
Verify a claim yourself
Every claim page downloads the evidence and re-hashes it in your browser. To do it independently:
curl -s /_/backend/evidence/<CLAIM_ADDRESS> | sha256sum
# compare with the claim's evidence_hash on-chainThe bundle contains the raw data (e.g. every day's rainfall and the exact API URL), the rule, the measured value and the verdict, so you can also re-fetch the source data and recompute the result.
What the program guarantees
- Every policy is fully collateralised: a vault can't sell more cover than its liquidity pays out.
- One payout per policy; one pending claim at a time.
- Underwriters can only withdraw capital that isn't backing a policy, and can't close a vault while claims are pending.
- Pausing a vault only stops new sales — it never blocks renewals or payouts.
- If your USDC account was closed, the payout recreates it.