Search…
migrateUniswapV2Position()
Common errors for migrating Uniswap v2 positions to Bancor v3
This function does NOT support Uniswap v3 positions.

Function migrateUniswapV2Position()

IBancorPortal.sol
function migrateUniswapV2Position(
Token token0,
Token token1,
uint256 amount
) external
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