MigratorZap
MigratorZap.sol
Migrates positions from NFTX V2 to V3.
Table of Contents
Constants
DEADLINE
A sufficiently large value used for Uniswap V2's deadline.
DUST_THRESHOLD
Threshold for what amount of V2 vTokens (left after redeeming) constitutes "dust." Used to determine whether to swap dust to WETH or not.
WETH
Address of WETH contract.
v2NFTXFactory
NFTX V2 vault factory address.
v2Inventory
NFTX V2 inventory staking address.
sushiRouter
Sushi router address.
positionManager
Address of NFTX V3's NonfungiblePositionManager contract.
v3NFTXFactory
Address of NFTXVaultFactoryUpgradeableV3 contract.
v3Inventory
Address of NFTXInventoryStakingV3Upgradeable contract.
Write Functions
sushiToNFTXAMM
Migrates Sushi vToken liquidity to NFTX v3 AMM.
v2InventoryToXNFT
Migrates V2 inventory position to V3 xNFT inventory staking position.
v2VaultToXNFT
Migrates V2 vault token to V3 xNFT inventory staking position.
Last updated