V3 Migrator
#
Code#
AddressV3Migrator
is deployed at 0x157B9913E00204f8c980bb00aa62E22b0dAb1a63
on the Polygon mainnet.
#
State-Changing Functions#
quoteExactInputMigrates liquidity to Algebra by burning v2 liquidity and minting a new position for Algebra. Slippage protection is enforced via amount{0,1}Min
, which should be a discount of the expected values of the maximum amount of Algebra liquidity that the v2 liquidity can get. For the special case of migrating to an out-of-range position, amount{0,1}Min
may be set to 0, enforcing that the position remains out of range
liquidityToMigrate
is expected to be balanceOf(msg.sender)
percentageToMigrate
is represented as a numerator over 100
amount0Min
must be discounted by percentageToMigrate
amount1Min
must be discounted by percentageToMigrate
Params
params
The params necessary to migrate v2 liquidity, encoded asMigrateParams
in calldata