UNCX Network
  • 🚪Introduction
  • 👀Availability and Fees
  • 🪙UNCX token
  • 📖Guides
    • For Investors
      • Liquidity Lockers
        • How can I check if the project locked liquidity?
      • Token Vesting
        • How can I check if the project locked tokens?
      • Staking
        • How to stake?
        • How to withdraw my staked tokens?
        • How to boost my stake?
    • For Projects
      • Stealth Launch
        • Creating your launch
        • Managing your launch
      • Liquidity Lockers V2
        • How to lock your LP tokens?
        • Managing your lock/Withdrawal
      • Liquidity Lockers V3
        • How to lock your LP?
        • Managing your lock/Withdrawal
      • Liquidity Lockers V4
        • How to lock your LP?
        • Managing your lock/Withdrawal
      • Solana Lockers
        • How to lock your LP?
        • Managing your lock/Withdrawal
        • Squads Multisig
      • Token Vesting
        • How to lock your tokens?
        • Managing your lock/Withdrawal
      • Staking-as-a-service
        • Creating a farm
        • Reward Pools
        • Editing a farm page
      • New Token Minter
        • Mint your token
        • Edit your token
        • Verify your token
    • For Developers
      • Subgraphs
      • Liquidity Lockers
        • Lockers V2
          • Contracts
          • Technical Reference
            • UniswapV2Locker (2.1)
            • UniswapV2Locker
          • Subgraphs
            • Endpoints
            • Queries
            • Entities
        • Lockers V3
          • Contracts
          • Technical Reference
            • Locker V3.1
            • NFT Migrator V3
          • Subgraphs
            • Endpoints
            • Queries
            • Entities
      • Token Vesting
        • Contracts
        • Technical Reference
        • Subgraphs
  • 👥Whitelisted audit/KYC partners
  • 💸UNCX Referral Program
  • 🔗UNCX Related Links
  • 🖇️UNCX API Collaborations
  • 🤖UNCX Info Bot Manual
Powered by GitBook
On this page
  • Functions Write
  • Migrate
  • Functions Wiew
  • OnERC721Received
  1. Guides
  2. For Developers
  3. Liquidity Lockers
  4. Lockers V3
  5. Technical Reference

NFT Migrator V3

Functions Write

Migrate

function migrate (    uint256 _lockId,     INonfungiblePositionManager _nftPositionManager,     uint256 _tokenId)     external returns (bool)

Enables migration of liqudity from Uniswap Locker V2 into Locker V3.

Parameters:

Name
Type
Description

_lockId

uint256

ID of the lock to be migrated from the older contract.

_nftPositionManager

INonfungiblePositionManager

The position manager for the NFT.

_tokenId

uint256

ID of the NFT token to be transferred and then approved for the new reserves contract.

Return Values:

Type
Description

bool

Returns true once the migration process is successfully completed.

Functions Wiew

OnERC721Received

Parameters:

Name
Type
Description

operator

address

Address initiating the transfer or creation. This could be an external or contract address.

from

address

Address from which the token was sent.

tokenId

uint256

Unique identifier for the token being transferred.

data

bytes

Additional data accompanying the transfer or minting call.

Return Values:

Type
Description

bytes4

Function selector for the onERC721Received function, confirming successful token receipt.

PreviousLocker V3.1NextSubgraphs

Last updated 1 month ago

📖