> For the complete documentation index, see [llms.txt](https://balancer.gitbook.io/balancer-v2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://balancer.gitbook.io/balancer-v2/getting-started/walkthroughs/invest.md).

# Invest

## Adding liquidity

### Connect Wallet

![](/files/-M_Qlrifp5d0ggvFOA7B)

Click one of the "Connect wallet" buttons, click MetaMask, and connect your desired wallet in the extension popup.

### Pick your pool

![](/files/-M_O-95jP31RJ0Wzb8G0)

**Filter pools by desired assets. In this example, we'll use WETH and BAL**

![](/files/-M_O-ToU68GTaoM6qv_-)

![](/files/-M_O-XWV9V4xxPRqyJcx)

Click on the desired pool to navigate to the pool management page

![](/files/-M_O-l5Wrs2RXy7KiSUe)

### Select your amount

You can choose to invest one token, a subset of tokens, or all of them. The pool will calculate how many pool tokens (BPTs) to give you for your input tokens. If you join the pool according to pool weights ("Best price"), you will not create any price impact. If you join in an unbalanced way ("Custom amounts") you may impact the price.

{% hint style="info" %}
If your "Custom amounts" join has significant price impact, it may be cheaper to swap your tokens to match the "Best price" amounts. If you significantly impact the price in a pool, you can create an arbitrage opportunity that someone else may profit from.
{% endhint %}

To invest a single asset, choose "Custom amounts".

![](/files/-M_O-nbLoIcsDuOjVwIB)

### Approve token(s)

![](/files/-M_O-rmQAYGp8NsngnGk)

### Click "Invest" to add tokens to the pool

![](/files/-M_O-wgauvt57qsJJxBJ)

![](/files/-M_O08O4PXQ1CsrEL5Uy)

### **Withdrawing Liquidity**

### Click on the pool in "My V2 Investments"

![](/files/-M_O0rdCaHFUmWatGlnh)

### Click on the "Withdraw" Tab

![](/files/-M_O0yjDe3-Alxs5xwz6)

### Select the amount you wish to withdraw

You can choose to withdraw a subset of tokens or all of them. If you decide to withdraw only one toke you can withdraw up to the whole value of your investment. In that case, the app will automatically swap other tokens to the one you're withdrawing. Eg it will sell the WETH in that pool and buy the BAL you're requesting. To withdraw a single asset, choose "Custom amounts".

![](/files/-M_O16cAxuqoYDyMfa_b)

### Click to withdraw tokens from the pool


---

# 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://balancer.gitbook.io/balancer-v2/getting-started/walkthroughs/invest.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.
