Margin protection for Hyperliquid
Auto top-up for onchain perps, funded from any chain.
Lifeline watches your Hyperliquid margin every 5 seconds. When health falls below the line you set, it sends USDC from your reserve on NEAR to your perps balance through NEAR Intents, before liquidation gets close.
The money sits in a vault that only ever pays your own Hyperliquid address, within caps you choose. Fund it from Ethereum, Solana, Base, Bitcoin or dozens of other chains.
The demo needs no wallet and no funds.
Open the full demo →
The keeper so far
Live from lifeline-sim.prashantthakur.dev.
Explanations from attested hardware
Every rescue comes with a plain-language explanation written by a model on NEAR AI Cloud. The keeper checks, with a fresh nonce, that the model runs in a secure enclave, verified through NVIDIA and Intel.
How it works
- 01
Fund a reserve from any chain
Pay with what you hold. 1Click swaps it into USDC on NEAR, in your own account, and one click moves it into the Lifeline vault.
- 02
Draw your lines
Pick when to warn you, when to rescue and what health to refill to, plus caps per rescue and per day and a cooldown. The vault stores them.
- 03
The keeper watches
Every 5 seconds it reads health from Hyperliquid: cross account value divided by maintenance margin. Liquidation comes at 1.0.
- 04
It rescues, within your rules
Below your trigger it gets a 1Click quote to your perps balance and asks the vault to pay it. The vault checks every rule again, on chain.
Built so the keeper doesn't need your trust
A keeper that holds your money could be hacked. So the rules live in the vault contract on NEAR, where a hacked keeper still can't break them, and every refusal is recorded in the public ledger.
See the public ledger →It can only pay your Hyperliquid address.
The vault compares every rescue's recipient with the address in your policy and refuses anything else.
It can't pass your caps.
Per rescue, per 24 hours and a cooldown between rescues, all enforced by the contract, not by the keeper's good behaviour.
Its key does one thing.
The keeper holds only a function-call key for the vault's rescue method. It can't withdraw, transfer or change a policy.
You stay in charge.
Pause at once, with no deposit to attach. Unpause and withdraw any time, with a confirmation in your wallet.