# Deposit

This section outlines the process to deposit tokens into a Bancor liquidity pool.

{% hint style="danger" %}
Before submitting any transaction, make sure the estimated gas cost looks reasonable! If it seems high, it’s very possible that your transaction will fail. If this happens, check the following and try again:

* That you approved the correct number of tokens for the correct contract
* The number of tokens has the right amount of zeros
* The contract address you entered is correct
  {% endhint %}

### 1. Approve

In order for the contract to interact with the tokens in your wallet and perform the transaction, an *`Approval`* must be set first for the contract.

{% hint style="info" %}
If you wish to deposit ETH or have already set approval for a very large amount for the token, skip to [step 3](#3.-function-depositandjoin).
{% endhint %}

1. Visit the relevant token contract. \
   This can be found on Etherscan by searching for the token ticker, or by clicking the Etherscan link on Coingecko token pages. \
   For example: [BNT](https://etherscan.io/token/0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c#writeContract) | [DAI](https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f#writeContract) | [LINK](https://etherscan.io/token/0x514910771af9ca656af840dff83e8264ecf986ca#writeContract)
2. Connect your wallet as explained in "[Using Etherscan](https://docs.bancor.network/guides/bancor-etherscan-guide/broken-reference)"
3. Fill in the fields in the `Approve` function, then click `Write` and complete the transaction.

<table data-header-hidden><thead><tr><th width="220"></th><th></th></tr></thead><tbody><tr><td>_spender</td><td>The address of the <em><code>BancorNetwork</code></em> <a href="../../../developer-guides/contracts#bancor-v3-contracts">found here</a></td></tr><tr><td>_value</td><td>The amount you would like to approve (it can be identical or larger than the amount you wish to deposit, BUT NOT LESS) in <code>WEI</code> format as <a href="broken-reference">explained here</a></td></tr></tbody></table>

![](https://273705617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9gDtGR2KNhur3c7qIJR%2Fuploads%2FdENOTTA1ymhOkyq6pPHX%2Fimage.png?alt=media\&token=6a970808-bf64-4f58-a580-ba91b95f82b3)

### 2. Deposit

{% hint style="danger" %}
Some pools might be in deficit which might effect the ability to withdraw the full amount you have deposited ([more info](https://blog.bancor.network/market-conditions-update-june-19-2022-e5b857b39336)).
{% endhint %}

Now that you have the approval in place, you are ready to deposit your tokens into the Bancor pool.&#x20;

Execute the **deposit** function, with the token address, and the number of tokens you wish to deposit.&#x20;

1. Visit the *`BancorNetwork`* contract [on etherscan](https://etherscan.io/address/0xeEF417e1D5CC832e619ae18D2F140De2999dD4fB#writeProxyContract)
2. Execute the *`deposit`* function (this is a Write function)

| Name        | Type    | Description                                                                                                                                                                                    |
| ----------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| deposit     | uint256 | <p><strong>ETH deposits ONLY:</strong></p><p>Indicate the ETH amount in full units (10.5 ETH should be indicated as 10.5)<br><strong>For any other token, this should be set to 0</strong></p> |
| pool        | uint256 | The address of the token you wish to deposit                                                                                                                                                   |
| tokenAmount | uint256 | The token (i.e BNT, ETH, DAI, LINK) amount you would like to deposit (using `WEI` format [explained here](https://docs.bancor.network/guides/bancor-etherscan-guide/broken-reference))         |

![](https://273705617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC9gDtGR2KNhur3c7qIJR%2Fuploads%2FL8CJhpKObK2QK5V5og9Z%2Fimage.png?alt=media\&token=e7be4ad7-5310-4942-b1f7-08a92d980d89)

Once executed successfully, the following will happen:

1. Your tokens will be deposited into the Bancor pool
2. The protocol will generate bnTokens that represent your position in the pool, and will transfer them to your wallet
