Airbag / Proof
Don't trust us. Check.
NEAR testnet
01The oracle is a code hash, not a server
Pinned in the contract (read live)…
Stored on NEAR (FastFS)…
Runs inOutLayer · Intel TDX (…)
Oracle keynone: only results from that run are accepted
Rebuild it yourself: cd airbag-near/oracle && cargo build --target wasm32-wasip2 --release && shasum -a 256 target/wasm32-wasip2/release/airbag-oracle.wasm. Anyone can call refresh(market) (≈0.001 NEAR); the contract asks OutLayer to run exactly that hash, the module reads Polymarket, and on_oracle stores the odds with the sha256 of the response it saw.
02Payouts on Base: a wallet nobody holds
Base Sepolia payout wallet0x85e23ae7103502b421a5fb856c36def4f6bbb8cb ↗
Its keyNEAR MPC, path "airbag-float", only for app.airbag-mw9otkyz.testnet
What it can signUSDC transfers of finalized payouts (the contract builds the message)
No Base payouts yet: they appear here when a market pays out a policy set to Base.
03Contracts
Mock USDC (testnet)usdc.airbag-mw9otkyz.testnet ↗
MPC signerv1.signer-prod.testnet
Guardian (can only delay)…
04Every step, on-chain
| What happened | Transaction |
|---|---|
| Oracle wasm stored on NEAR (FastFS) | CzYpuBPtrRcR… ↗ |
| Airbag contract deployed | 7PTXEQXKZK1z… ↗ |
| Airbag initialised: oracle pinned to the FastFS wasm (url + sha256) | 9VEPm1R9rHMG… ↗ |
| Market 0 created: USDC depegs (below $0.98 for 24h) before Dec 31, 2026 (Polymarket usdc-depeg-by-december-31-968, pays on yes) | BCnftH1M41bA… ↗ |
| Market 1 created: BTC crash cover: Bitcoin closes below $74,000 on Nov 12 (Polymarket bitcoin-above-74k-on-november-12-2026, pays on no) | GMMf8uqxrsyG… ↗ |
| Market 2 created: BTC crash cover: Bitcoin closes below $70,000 on Nov 13 (Polymarket bitcoin-above-70k-on-november-13-2026, pays on no) | BqvCYUPrmZEc… ↗ |
| OutLayer TEE run reads Polymarket, contract posts the floor for market 1: 3700 bps | 34nCPueppRff… ↗ |
| OutLayer TEE run reads Polymarket, contract posts the floor for market 0: 200 bps | BbPd98PEYxoV… ↗ |
| OutLayer TEE run reads Polymarket, contract posts the floor for market 2: 701 bps | 2XyEHy7VE6oe… ↗ |
| Base Sepolia registered; payout wallet 0x85e23ae7103502b421a5fb856c36def4f6bbb8cb = NEAR MPC key (app, "airbag-float") | DX3Ux1wNuKPx… ↗ |
| Underwriter adds 10000 USDC to market 0 | 7JwqEXQyVZwj… ↗ |
| Underwriter adds 10000 USDC to market 1 | 7wbH6QLxTzgk… ↗ |
| Underwriter adds 10000 USDC to market 2 | 4nirLfbtYNL9… ↗ |
| alice buys 300 USDC of cover on market 1 for 113.45 USDC (paid on NEAR) | 2yiyfzYHxry7… ↗ |
| bob buys 100 USDC of cover on market 1 for 38.42 USDC (paid on Base Sepolia) | 9TpH5Mvk6hux… ↗ |
| alice buys 500 USDC of cover on market 2 for 36.94 USDC (paid on NEAR) | GkuYHCURAjxh… ↗ |
| bob buys 400 USDC of cover on market 0 for 8.40 USDC (paid on NEAR) | 2DaP2ajpFFdH… ↗ |
| bob switches policy 1 (100 USDC) to pay on NEAR | 59UiRZNecA9t… ↗ |
| bob buys 10 USDC of cover on market 1 for 3.86 USDC, paid on Base Sepolia | 2JsGBu9cufPL… ↗ |
| Airbag contract upgraded: Polymarket CTF hedging (state kept) | 3dCEMuNVKqZJ… ↗ |
| Polymarket on Polygon Amoy configured: CTF + collateral, Airbag's MPC wallet | 2iFYSf2coqqv… ↗ |
| Market 0 mirrored as a Polymarket CTF condition (cover so far: 400 USDC) | 6kf3r57nXJDs… ↗ |
| Market 1 mirrored as a Polymarket CTF condition (cover so far: 410 USDC) | 9gkxggpsP3z9… ↗ |
| Market 2 mirrored as a Polymarket CTF condition (cover so far: 500 USDC) | 9ehxvJCopK6E… ↗ |
| NEAR MPC signs Polygon tx 0: approve | 2kfkAJj3EKTQ… ↗ |
| Polygon Amoy: Airbag's MPC wallet approves Polymarket's CTF to use its USDC | Polygon · 0x3a3fc518f8… ↗ |
| Airbag contract upgraded: owner can reset a Polygon tx stuck in signing (state kept) | NoDzf4xRrdLj… ↗ |
| NEAR MPC signs Polygon tx 1: mint | E6j9HYZx3N8L… ↗ |
| NEAR MPC signs Polygon tx 2: prepare_condition (market 0) | 5T2P6qjZYqxC… ↗ |
| NEAR MPC signs Polygon tx 3: split (market 0) | 6wGmuXtzfsai… ↗ |
| NEAR MPC signs Polygon tx 4: prepare_condition (market 1) | HKpM8sZ3ey6i… ↗ |
| Polygon Amoy: Airbag's MPC wallet mints test USDC (testnet stand-in for bridged premiums) | Polygon · 0xbff419ee14… ↗ |
| Polygon Amoy: Airbag's MPC wallet creates the market's YES/NO condition on Polymarket's CTF (market 0) | Polygon · 0x71f01b2f34… ↗ |
| Polygon Amoy: Airbag's MPC wallet splits USDC into real Polymarket YES + NO shares for the cover sold (market 0) | Polygon · 0xb82feb0cfe… ↗ |
| Polygon Amoy: Airbag's MPC wallet creates the market's YES/NO condition on Polymarket's CTF (market 1) | Polygon · 0x0a952806b9… ↗ |
| NEAR MPC signs Polygon tx 5: split (market 1) | GQMZaYWSQhiL… ↗ |
| NEAR MPC signs Polygon tx 6: prepare_condition (market 2) | A2yABsMWQvTh… ↗ |
| NEAR MPC signs Polygon tx 7: split (market 2) | 7WiVnL8fHo6X… ↗ |
| Polygon Amoy: Airbag's MPC wallet splits USDC into real Polymarket YES + NO shares for the cover sold (market 1) | Polygon · 0x58052ce954… ↗ |
| Polygon Amoy: Airbag's MPC wallet creates the market's YES/NO condition on Polymarket's CTF (market 2) | Polygon · 0xa8a7f852c6… ↗ |
| Polygon Amoy: Airbag's MPC wallet splits USDC into real Polymarket YES + NO shares for the cover sold (market 2) | Polygon · 0xd137f0637c… ↗ |
| NEAR MPC signs Polygon tx 8: split (market 1) | 5n98dGeRxh9u… ↗ |
| Polygon Amoy: Airbag's MPC wallet splits USDC into real Polymarket YES + NO shares for the cover sold (market 1) | Polygon · 0x32f5b852ac… ↗ |
| NEAR MPC signs Polygon tx 9: split (market 1) | 61S1h21bzDrk… ↗ |
| Polygon Amoy: Airbag's MPC wallet splits USDC into real Polymarket YES + NO shares for the cover sold (market 1) | Polygon · 0x487483739d… ↗ |