Prepare a Yield Copilot vault deposit (Morpho USDC on Base) as an unsigned swap pair
otto_prepare_yield_depositPrepare the EXACT otto_prepare_swap pair (envelope + prepareInput) that deposits USDC into one of the executable Morpho vaults from the Yield Copilot registry, as a LI.FI position-acquisition route (which may buy shares or compose a protocol deposit) whose output token is the vault's ERC-4626 share token and whose receiver is the signing account. The vault comes from the registry row named by executableMarketId and is never an input; the caller's registryCommitment must equal the commitment recomputed over the current record. The quoted shares are checked against the vault's own previewDeposit and refused when they fall short by more than the pinned tolerance. Returns the pair unchanged plus a preview; never signs or submits; the signing account signs and sends the pair itself. Preparation does not authorize execution. Every envelope from this server is valid for 300 seconds from construction (valid_until); a stale envelope is refused by the verifier — request a fresh one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountProfile": "<accountProfile>",
"executableMarketId": "<executableMarketId>",
"registryCommitment": "<registryCommitment>",
"amount": "<amount>",
"slippage": "<slippage>"
},
"name": "otto_prepare_yield_deposit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Exact USDC amount to deposit, in atomic units (6 decimals). | |
| slippage | Yes | ||
| client_ref | No | ||
| accountProfile | Yes | ||
| executableMarketId | Yes | The executable market id the READ half served (`GET /api/yield-copilot` rows with deployable:true), e.g. base-usdc-morpho-gauntlet-prime. | |
| registryCommitment | Yes | The registry commitment served with that row. It must equal the commitment this server recomputes over the CURRENT record; a stale or foreign row is refused by name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | Yes | ||
| envelope | Yes | ||
| prepareInput | Yes | ||
| registry_commitment | Yes |