> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Nest Deposit

Deposit pUSD into a Nest vault via PredicateProxy. Fetches compliance message from Nest API, approves pUSD, and calls PredicateProxy.deposit(). Returns the shares received. Ideal for: vault rebalancing deposits, yield farming, automated DeFi portfolio management.

![Nest Deposit logo](https://cdn.b3.fun/b3os-icons/plume.svg)
Catalog action EVM Onchain wallet Gas send

Deposit pUSD into a Nest vault via PredicateProxy. Fetches compliance message from Nest API, approves pUSD, and calls PredicateProxy.deposit(). Returns the shares received. Ideal for: vault rebalancing deposits, yield farming, automated DeFi portfolio management.

**Review wallet and value movement**

This action can require a wallet connector, gas, token movement, or an external side effect. Test with simulation or a controlled amount before using it in a live workflow.

## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `nest-deposit` |
| Category | EVM Onchain |
| Connector | `wallet` |
| Requires gas | Yes |
| Funds movement | `send` |
| Tags | `defi`, `plume`, `nest`, `deposit`, `vault`, `onchain`, `write`, `rebalancing` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `vault` | `string` | Yes | Target vault symbol \(e.g., 'nALPHA'\). Used for logging. |
| `tellerAddress` | `string` | Yes | Teller contract address for the target vault. |
| `amountPusdRaw` | `string` | Yes | Amount of pUSD to deposit in raw units \(wei, 6 decimals\). |
| `slippageBps` | `number` | No | Slippage tolerance for minimumMint in basis points \(default: 50 = 0.5%\). |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | `string` | Yes | Whether the deposit was successful. |
| `vault` | `string` | Yes | Vault symbol deposited into. |
| `amountPusdRaw` | `string` | No | pUSD amount deposited. |
| `sharesReceived` | `string` | No | Vault shares \(nToken\) received. |
| `transactions` | `object` | No | Transaction hashes. |
| `reason` | `string` | No | Reason if status is 'error'. |

## Examples

**Workflow node**

```json
{
  "type": "nest-deposit",
  "payload": {
    "vault": "example-vault",
    "tellerAddress": "0x0000000000000000000000000000000000000000",
    "amountPusdRaw": "1000000"
  },
  "children": [],
  "connector": {
    "type": "wallet",
    "id": "conn_wallet"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/nest-deposit/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "vault": "example-vault",
    "tellerAddress": "0x0000000000000000000000000000000000000000",
    "amountPusdRaw": "1000000"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.