Plan a loan ladder
plan_loansSplit a single Aave V3 loan into staggered-LTV loans to form a liquidation price band, using live reserve data or offline values; reports extra collateral and max-LTV status.
Instructions
Split one Aave V3 loan (one collateral, one debt, standard mode) into loans with staggered LTV so their liquidation prices form a band. Give collateralSymbol to use the live reserve (LTV, liquidation threshold, oracle price; needs MUTEXA_ETH_RPC), or ltv, liqThreshold and priceUsd to plan offline. Reports the band, extra collateral and whether the single loan is above max LTV.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ltv | No | Max LTV for new borrows, 0..1 (offline mode) | |
| band | Yes | LTV stagger across loans, 0..1 | |
| seed | No | Seed for the size variation (default 1) | |
| loans | Yes | Number of loans | |
| debtUsd | Yes | Debt in USD | |
| priceUsd | No | Collateral price in USD (offline mode) | |
| placement | Yes | ||
| sizeJitter | No | Size variation across loans, 0..1 (default 0) | |
| liqThreshold | No | Liquidation threshold, 0..1 (offline mode) | |
| collateralAmount | Yes | Collateral in tokens | |
| collateralSymbol | No | Aave V3 Ethereum reserve symbol, for example WETH |