> For the complete documentation index, see [llms.txt](https://docs-v4.venus.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-v4.venus.io/technical-reference/reference-core-pool/vaults/vai/vai-vault.md).

# VAIVault

## VAI Vault

The VAI Vault is configured for users to stake VAI And receive XVS as a reward.

## Solidity API

#### pause

Pause vault

```solidity
function pause() external
```

***

#### resume

Resume vault

```solidity
function resume() external
```

***

#### deposit

Deposit VAI to VAIVault for XVS allocation

```solidity
function deposit(uint256 _amount) external
```

**Parameters**

| Name     | Type    | Description                    |
| -------- | ------- | ------------------------------ |
| \_amount | uint256 | The amount to deposit to vault |

***

#### withdraw

Withdraw VAI from VAIVault

```solidity
function withdraw(uint256 _amount) external
```

**Parameters**

| Name     | Type    | Description                       |
| -------- | ------- | --------------------------------- |
| \_amount | uint256 | The amount to withdraw from vault |

***

#### claim

Claim XVS from VAIVault

```solidity
function claim() external
```

***

#### claim

Claim XVS from VAIVault

```solidity
function claim(address account) external
```

**Parameters**

| Name    | Type    | Description                        |
| ------- | ------- | ---------------------------------- |
| account | address | The account for which to claim XVS |

***

#### pendingXVS

View function to see pending XVS on frontend

```solidity
function pendingXVS(address _user) public view returns (uint256)
```

**Parameters**

| Name   | Type    | Description                 |
| ------ | ------- | --------------------------- |
| \_user | address | The user to see pending XVS |

**Return Values**

| Name | Type    | Description                      |
| ---- | ------- | -------------------------------- |
| \[0] | uint256 | Amount of XVS the user can claim |

***

#### updatePendingRewards

Function that updates pending rewards

```solidity
function updatePendingRewards() public
```

***

#### \_become

* Admin Functions \*\*

```solidity
function _become(contract VAIVaultProxy vaiVaultProxy) external
```

***

#### setAccessControl

Sets the address of the access control of this contract

```solidity
function setAccessControl(address newAccessControlAddress) external
```

**Parameters**

| Name                    | Type    | Description                        |
| ----------------------- | ------- | ---------------------------------- |
| newAccessControlAddress | address | New address for the access control |

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs-v4.venus.io/technical-reference/reference-core-pool/vaults/vai/vai-vault.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
