# SingleDepositorVault

**Inherits:** ISingleDepositorVault, FeeVault

A vault that allows a single depositor to deposit and withdraw assets and allows a fee recipient and the protocol to charge fees. The vault owner retains full custody of assets at all times and can take arbitrary actions through the execute function. For convenience, ERC20 assets can also be withdrawn using the withdraw function and deposited using the deposit function

*Fee logic is inherited from the fee vault and support for guardians is inherited from the BaseVault*

## Functions

### constructor

```solidity
constructor() FeeVault();
```

### deposit

Deposit assets into the vault

```solidity
function deposit(TokenAmount[] calldata tokenAmounts) external requiresAuth;
```

**Parameters**

| Name           | Type            | Description           |
| -------------- | --------------- | --------------------- |
| `tokenAmounts` | `TokenAmount[]` | The assets to deposit |

### withdraw

Withdraw assets from the vault

```solidity
function withdraw(TokenAmount[] calldata tokenAmounts) external requiresAuth;
```

**Parameters**

| Name           | Type            | Description            |
| -------------- | --------------- | ---------------------- |
| `tokenAmounts` | `TokenAmount[]` | The assets to withdraw |

### execute

Execute operations on the vault as a trusted entity

```solidity
function execute(OperationPayable[] calldata operations) external requiresAuth;
```

**Parameters**

| Name         | Type                 | Description               |
| ------------ | -------------------- | ------------------------- |
| `operations` | `OperationPayable[]` | The operations to execute |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aera.finance/the-protocol/core/singledepositorvault.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
