Simulate Liquidation
simulate_liquidationSimulates the impact of a collateral price drop on all active EVM lending positions for a wallet (Aave V3/V4, Spark, Morpho, Euler, Moonwell). Formula: newHF = currentHF × (1 − drop%). Shows per-position health factor changes and flags which positions would move to AT RISK, DANGER, or LIQUIDATED. Use this when asked: "What happens to this wallet if ETH drops 30%?", "Would this wallet survive a 40% market crash?", "Stress-test this address at -20% collateral", "Which positions are closest to liquidation if the market drops?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | EVM wallet address — must start with 0x and be exactly 42 characters, e.g. 0xabc…1234 | |
| collateral_drop_pct | Yes | Percentage drop in collateral value to simulate, e.g. 30 for a 30% price crash. Range: 1–80. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positions | Yes | Per-position simulation results | |
| allSurvived | Yes | True if every position survives the simulated drop | |
| atRiskCount | Yes | Positions that would move to AT RISK or DANGER tier | |
| liquidatedCount | Yes | Positions that would be liquidated (HF < 1.0) | |
| scenarioDropPct | Yes | Simulated collateral price drop percentage |