Loops HouseQorvex

NEAR HACKATHON
Team
1 member- VAOwner
Valerie
Overview
Most DeFi losses now come from contracts getting their own accounting wrong, and hacked protocols with a pause button rarely press it in time. In the NEAR Intents ghost-balance bug, unbacked credits went unnoticed for about 40 hours.
Qorvex is an automatic brake for NEAR contracts, DAO treasuries and gas relayers. A team states what must always hold, such as "the contract never owes users more USDC than it holds". A watcher checks it on every block and, on a confirmed breach, pauses the contract through our guardian contract. A Sputnik DAO or Trezu council adds one role that can only vote to reject, and Qorvex uses it on proposals that break the treasury's policy. Gas relayers ask Qorvex before paying for a transaction, so the kind of drain that hit Trezu's sponsor twice gets refused.
AI drafts the rules from a contract's code and state, and explains each incident afterwards. It runs on NEAR AI Cloud with private inference in TEEs, so a protocol's code stays private. Every draft is backtested and approved by a person; the AI never decides a pause.
NEAR makes the brake safe to hand over: Qorvex's only key is a function-call key limited by the protocol to guardian.pause, so it cannot unpause, change limits or move funds. And because cross-contract calls are asynchronous, a contract can't check its real balances in one transaction; the check has to run across blocks. Contracts using near-plugins Pausable connect without code changes; others add our Rust crate.
It runs end to end on NEAR testnet: a hosted app where anyone can check a contract without signing up, the guardian contract, a demo ledger Qorvex paused within 10 seconds of a breach, and a relayer SDK on npm.