# migratePoolTokens()

### Function migratePoolTokens()

{% code title="BancorV1Migration.sol" %}

```javascript
function migratePoolTokens(IPoolToken poolToken, uint256 amount) external
```

{% endcode %}

This function migrates **Bancor v1** pool tokens to Bancor v3. Use this function for non-whitelisted pools on the Bancor network.&#x20;

You can trigger this function on any Bancor pool tokens that exist in your wallet.

### Function Arguments

| Name      | Type       | Description                                      |
| --------- | ---------- | ------------------------------------------------ |
| poolToken | IPoolToken | The address of the token deposited into the pool |
| amount    | uint256    | The amount to deposit                            |


---

# 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.bancor.network/developer-guides/write-functions/migrating-liquidity-to-v3/migrating-bancor-positions-to-v3/migratepooltokens.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.
