Loops HouseQuiet Margin

NEAR HACKATHON
Links
Team
1 member- RAOwner
Ravi Shankar Bejini
Overview
On NEAR testnet, Quiet Margin rejected a liquidation attempt on a healthy BTC perpetual position. After the price crossed the liquidation threshold, the NEAR contract verified the backup keeper’s Groth16 proof and settled the position while the trader was offline.
Public trading ledgers can expose a position as soon as it opens. Quiet Margin keeps direction, exact size, and margin out of public open transactions. Designated keepers can decrypt those details, and public settlement data can help observers infer some of them.
Traders fund a shared pool from their connected NEAR wallet and use a separate trading key to manage shielded collateral and trade BTC longs and shorts. The browser generates proofs for trader actions, and the NEAR contract verifies them on-chain. The live pool uses a relayed BTC/USDT price. The liquidation demo uses the same contract code in a separate pool with a controlled price so the price move is repeatable.
From the repo, run node scripts/verify-judge-demo.mjs to verify 16 finalized testnet transactions and their inclusion blocks without a wallet.