# migrateUniswapV2Position()

{% hint style="danger" %}
This function does NOT support Uniswap v3 positions.&#x20;
{% endhint %}

### Function migrateUniswapV2Position()

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

```javascript
    function migrateUniswapV2Position(
        Token token0,
        Token token1,
        uint256 amount
    ) external
```

{% endcode %}

This function migrates liquidity from Uniswap v2 to Bancor v3.

### Function Arguments

| Name    | Type   | Description                          |
| ------- | ------ | ------------------------------------ |
| Token   | token0 | Token being migrated from Uniswap v2 |
| Token   | token1 | Token being reserved on Bancor v3    |
| uint256 | amount | 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-from-uniswap-v2/migrateuniswapv2position.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.
