Protection with clear boundaries.
Review permissions, conditions and availability before taking action.
- 01Permissions
- 02Conditions
- 03Action
MIDAS Rescue Protocol
Save your Aave V3 position on Base before liquidation · fee … wFRAC (read live from the contract)
Check Your Position
Guardian — automatic rescue
Store a rescue policy on-chain once. If your Aave health factor on Base drops below your trigger, a FractalAI keeper runs the same atomic flash-loan rescue for you — it pays the gas, you pay the … wFRAC fee per rescue.
- 1. Choose debt to repay, collateral to use, your HF trigger (1.00–3.00) and a per-rescue cap.
- 2. Approve a bounded amount of aTokens and the fee × the number of rescues you want covered.
- 3. Sign enableGuardian. Disable any time; the policy expires on the date you set (max 365 days).
What the guardian is — and is not
The keeper can only act while Pool.getUserAccountData says healthFactor < your trigger. It never decides which asset, how much slippage or which fee: those come from your policy.
The node rescans Base every ~20 s and the keeper loop runs every ~10 min. A sharp crash can still liquidate you before the keeper reacts. This reduces the liquidation window; it does not remove it.
You pay the wFRAC fee per rescue (frozen at the value shown when you activate). The keeper pays gas. A rescue must leave your HF strictly higher and at least …, or it reverts entirely.
Without a live aToken and wFRAC allowance the rescue reverts. Approvals are bounded (never unlimited): revoke them in your wallet and the keeper is powerless, even with the policy on.
This is best-effort automation bounded by feed latency, gas, pool liquidity and competing liquidators — not guaranteed protection. Vault V2: 0x6541…D37C · keeper 0x0f5a…CceE · bytecode on Base, not audited by a third party.
How Rescue Works
- 1
You approve the vault to pull the aTokens of your collateral (bounded to your balance, never unlimited) and approve the … wFRAC fee in wFRAC. Both allowances are required by the contract — without the wFRAC allowance the rescue reverts.
- 2
The vault takes an Aave V3 flash loan to repay your debt. The whole thing is one atomic transaction: if any step fails, everything reverts and your position is untouched.
- 3
The vault withdraws just enough of your collateral, swaps it on Uniswap V3 (when it is not the debt asset, slippage capped by the maximum you choose) and repays the flash loan plus premium. Leftover collateral and aTokens are returned to you.
- 4
Fee: read live from the contract (50% burned, 50% treasury).