simulate_position_change
Simulate adding or removing collateral, or borrowing/repaying debt on lending positions. Returns projected health factor and collateral/debt totals. Supports Aave V3, Compound V3, and Morpho Blue.
Instructions
Simulate the effect of adding or removing collateral, or borrowing/repaying debt on a lending position. Returns the projected health factor and collateral/debt totals. Supports Aave V3 (default), Compound V3 (pass protocol: "compound-v3" + market Comet address), and Morpho Blue (pass protocol: "morpho-blue" + marketId bytes32). No transaction is sent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| chain | No | ethereum | |
| action | Yes | ||
| asset | Yes | ||
| amountUsd | Yes | ||
| protocol | No | aave-v3 | |
| market | No | ||
| marketId | No |