SOL → USDC
trigger · pyth(SOL_USD) < $240
action · transfer 4.2 SOL → USDC
Pre-arm a vault. Define one trigger. When the horde arrives, your funds evacuate to safety in 23ms. No keepers. No alarm clock. No human reaction window. Permissionless on arrival.
SAFE ROOMis a dead man's switch wrapped in a safe room. You pre-stage tokens inside a vault PDA, register one trigger (price, time), and configure where funds go when the horde arrives. While the room is armed, anyone may broadcast the evacuation tx the moment the trigger condition is reached. Vault drains atomically to the destination you chose. No bot you need to trust. No exchange API. No alarm clock.
Liquidations don't wait for your reaction time. Rug pulls don't respect your sleep cycle. The horde doesn't negotiate. Sit a guard at the door before you close your eyes. The door slams shut on contact.
The vault is a PDA owned by the room. The room is a PDA owned by the program. The trigger is a flag the horde flips. The door is automatic.
Owner deposits tokens into a PDA-owned vault. Configures trigger (oracle + threshold) and destination. Status flips to ARMED.
Oracle account is the early-warning siren. Off-chain responders watch it. Nobody can touch the vault while status is ARMED and trigger is false.
Price drops below threshold or scheduled slot passes. Oracle data is published on-chain. Trigger becomes truthy.
Any signer broadcasts trigger_safe_room. Program verifies oracle, checks staleness, transfers vault to destination, flips status to EVACUATED.
Wallets without a Safe Room get destroyed on the same candle. The room owner wakes up with their funds at the destination they pre-chose.
After terminal state (EVACUATED / DISARMED / EXPIRED), owner calls close_safe_room. Vault account closes. Rent returns.
trigger · pyth(SOL_USD) < $240
action · transfer 4.2 SOL → USDC
trigger · pyth(BONK_USD) < $0.000022
action · transfer 12000000 BONK → USDC
on-chain rooms hit devnet immediately · seed cards above are stubs to show what a saturated observatory looks like. evacuation will succeed once trigger slot passes.
on-chain program live on devnet. browser sdk wire-up · pyth pull oracle · jupiter swap action · responder bot · all targeted for week 2. use at your own quarantine.