simulate_health_factor
Simulate how a price change affects your AAVE health factor. Determine if a drop triggers liquidation.
Instructions
Use this when the user wants to simulate how a price change affects their AAVE health factor — 'What happens to my health factor if ETH drops 20%?', 'How much can WBTC fall before I get liquidated?', 'Simulate a 30% drop in my collateral asset'. Fetches the user's full position, computes current health factor, then recalculates it after applying the specified price change to the target asset. Health Factor < 1.0 means the position is liquidatable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain identifier | |
| assetSymbol | Yes | Symbol of the asset whose price changes (e.g. WETH, WBTC, USDC) | |
| userAddress | Yes | Wallet address of the user (0x...) | |
| priceChangePct | Yes | Price change percentage — negative for drops, positive for gains. E.g. -20 means the asset price falls 20%. |