Borrower
Your wallet, on the lending chain
Can
- Authorize LeveeUnwind with your trigger, target, price bound, collateral and pool
- Set the aToken allowance to it
- Revoke at once, without NEAR
Testnet
Aave v3, signed on NEAR
When your health factor falls below the trigger you set, a NEAR contract with no keys signs one call that sells just enough of your collateral to repay USDC debt back to your target. The position stays in your wallet. On Base, an ownerless helper checks the trigger and the price against Aave’s oracle before anything moves.
Live on Base Sepolia, 8 Nov 2026: 7 rescues from collateral and 1 the keeper refused, one after both contract accounts lost their last key. Nothing is on a mainnet. Every run
You set the terms once. Then every rescue runs the same line. Times are medians from the 7 testnet rescues from collateral. The helper’s stop is square, like the terminus it is.
Your position
Once, on Base: authorize LeveeUnwind with your trigger, target, price bound, collateral and pool, and approve a capped amount of its aToken.
Keeper
Every 5 seconds, from two RPCs. Acts only when they agree within 0.5% and the reads are under 30 seconds old.
Keeper
Below your trigger, it works out the USDC repay that reaches your target and quotes the sale on Uniswap. Past your bound, it stops.
Levee contract
Per-rescue cap, daily cap, cooldown, fee ceilings. Then it writes the transaction itself.
1.6 s to NEAR
MPC network
Chain Signatures sign LeveeUnwind.unwind for the rescuer address derived for your position.
5.2 s to signature
Your position
On Base, LeveeUnwind checks your trigger, collateral, pool and bound, repays the USDC and sells just enough collateral.
0.5 s to inclusion
Keeper
Every attempt, landed or not, goes to the evidence folder with its timings.
One terminus
LeveeUnwind.unwind(borrower, collateral, amount, poolFee, maxSold)The only call a rescue from collateral can make. The keeper sends a position id, an amount, max_sold and fees, and the borrower, collateral and pool are fixed at registration. On Base, before anything moves, the helper checks:
LeveeUnwind has no owner and cannot be upgraded.
Each actor has one job. The helper on Base and the contract on NEAR enforce the limits, so a stolen keeper key stays inside them.
Your wallet, on the lending chain
The helper on Base. No owner
Key limited to rescue_from_collateral
levee-core-v2-1503.testnet
NEAR Chain Signatures
The NEAR account that registers
Worst caseA stolen keeper key can act only while your health factor is below your trigger, only on the collateral and pool you named, and not much past your target. Each sale is at most your bound worse than Aave’s oracle, up to the daily cap. It can also burn rescuer gas up to the fee ceiling. revoke() or a zero allowance stops it at once.
Repay from collateral: 7 landed and 1 stopped itself, 8 Nov 2026, median 7.9 s from detection to inclusion. Repay from a reserve: 13 landed and 1 stopped itself, 7 Nov 2026, median 8.4 s from detection to inclusion. One test position on Base Sepolia. Nothing here has run on a mainnet.
Each line is one run. Steeper means faster. The blue line is the run replayed above.
15 of 15 signed on NEAR testnet, median 6.6 s, slowest 7.1 s. Signature only. Nothing was broadcast. Time from the keeper sending rescue to holding a verified signature.
Every native USDC borrower on Aave v3 Base and Arbitrum, through two crashes and a calm month, replayed with trigger 1.20, target 1.50 and a 60 second delay. Each sale is priced from a real Uniswap v3 quote at its landing block, against Aave’s oracle in the same block. A simulation: it assumes the keeper, RPCs, NEAR and the MPC network all worked.
Of the borrowers really liquidated in each period. The reserve and the upfront repay hold 30% of debt in USDC; repaying from collateral holds none.
Net from collateral: +$174.7k at 1%, +$77.8k at 3%
Net from collateral: +$774.0k at 1%, +$473.0k at 3%
Net from collateral: −$122.0k at 1%, −$290.1k at 3%
Every figure by period, the misses, the split by size and the reserve mode’s own backtest are on the proof page.
Free and read-only. Levee reads Aave on Base and Arbitrum, and Hyperliquid, and places each position on one line by its distance from liquidation. It repays only on Aave.
Both Aave positions are under 1.20, the trigger the backtest used. Repaying $117,327 would bring Aave on Base to 1.50.
For Aave the distance is a fall in collateral price, for the Hyperliquid shorts a rise in price. Levee has no relationship with this address, and nothing is repaying it.