Build Equity Vault Exit
build_equity_exit_txBuild the UNSIGNED call batch to fully unwind an OPEN equity vault (from get_positions.equityPositions): close each of its yield loops, then one self-funded router call repays the stock debt, withdraws the stock, swaps it to USDG and returns the proceeds. Submit as ONE atomic batch. Non-custodial; the vault's yield loop cannot be closed alone through build_manage_tx. Only the vault's own loop(s) are closed: those get_positions attributes unambiguously, or exactly the ones you pass in yieldPositionIds. Always read meta.closedYieldPositionIds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | Chain to target. Supported: 1, 4663. Default: 1. | |
| slippage | No | Swap slippage ratio. Default 0.01, capped at 0.01. | |
| strategyId | Yes | The vault's id ('equity-0x…'). | |
| userAddress | Yes | Wallet that owns the vault and will sign. | |
| yieldPositionIds | No | The yield loop id(s) to close with the stock leg (from get_positions). Optional when the vault's yieldLoopMatch is tagged/basis/mixed; REQUIRED when it is 'ambiguous'. Nothing outside this list is closed. |