Build Equity Vault Deposit
build_equity_deposit_txBuild the UNSIGNED call batch to deposit into a stock + yield equity vault, for the given wallet to sign. Non-custodial. Returns calls[] (approve USDG → router, authorize the router on Morpho, the one-call equityEntry, revoke) to submit as ONE atomic batch (EIP-5792 wallet_sendCalls / Safe), plus the same preview as simulate_equity_deposit. meta.signingUrl is a one-click link for a human to sign in the app. Swap calldata is time-sensitive (meta.expiresAt).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Deposit amount in human units of the vault's deposit token (USDG), e.g. '10000'. | |
| chainId | No | Chain to target. Supported: 1, 4663. Default: 1. | |
| slippage | No | Swap slippage ratio. Default 0.01 (the app's setting for vaults), capped at 0.01. | |
| strategyId | Yes | The vault's id from list_strategies (starts with 'equity-'). | |
| stockLtvPct | No | Stock-leg LTV percent to borrow at (e.g. '50'). Default: the vault's targetLtvPct. Capped at 88% of the stock market's liquidation LTV (55 on a 62.5% market) — a higher value is refused, not clamped. | |
| userAddress | Yes | The wallet that will sign and send; the stock leg and yield loop are opened for it. |