Loops House



Tripwire

NEAR HACKATHON
Links
Team
1 member- SHOwner
Shrimay Raut
Overview
THE NEED Liquidation is the most expensive moment in DeFi lending. When a borrower's health factor drops below 100%, a liquidator can seize their collateral at a discount, which on Rhea reaches about 6.25% at 87.5% health. Borrowers can't watch positions all day, and existing protection tools (DeFi Saver on Aave, HyperLend's Liquidation Guard) are built for other ecosystems. We found no equivalent for Rhea on NEAR.
WHAT TRIPWIRE IS Tripwire is a lending wrapper vault on Rhea. The user's position lives inside the Tripwire contract, alongside a stablecoin reserve. Because the contract owns the position, rescue() is permissionless: anyone can call it, and the contract recomputes the health factor from Rhea's on-chain data first. If health is below the trigger, it repays a capped amount from the reserve and pays the caller a small capped bounty. Otherwise nothing happens.
WHO IT'S FOR Borrowers on Rhea who hold stablecoin debt against volatile collateral and can't monitor positions constantly, plus keeper bot operators who earn the bounty.
SAFETY No function moves collateral out of the vault. The only outflows are a capped repay and a capped bounty, so a bad oracle price costs a small unnecessary repay, not a drain.
STATUS In development for the hackathon; shipped and planned stay separate. What ships: the rescue() state machine, the fast stablecoin reserve, per-hop gas accounting, and a proof-of-save record per rescue, backed by 88 Rust unit tests on mocks from real Rhea and Pyth mainnet samples, plus a TypeScript keeper (dry-run default, 18 tests). Not run on mainnet. Designed, not built: one cross-chain path where a NEAR contract uses Chain Signatures to repay an Aave position on Base Sepolia, a cross-chain Earn reserve, and a TEE-attested keeper. The fast reserve is sized by drawdown math: repaying ~15% of debt moves health 1.10 to 1.30.
DESIGNED, NOT BUILT A cross-chain Earn reserve and a TEE-attested keeper. Both are documented in the README.