Lockers V3
Technical Reference
NFT Migrator V3

MigrateV3NFT

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:
NameTypeDescription
_lockIduint256ID of the lock to be migrated from the older contract.
_nftPositionManagerINonfungiblePositionManagerThe position manager for the NFT.
_tokenIduint256ID of the NFT token to be transferred and then approved for the new reserves contract.
Return Values:
TypeDescription
boolReturns true once the migration process is successfully completed.

Functions Wiew

OnERC721Received

Parameters:
NameTypeDescription
operatoraddressAddress initiating the transfer or creation. This could be an external or contract address.
fromaddressAddress from which the token was sent.
tokenIduint256Unique identifier for the token being transferred.
databytesAdditional data accompanying the transfer or minting call.
Return Values:
TypeDescription
bytes4Function selector for the onERC721Received function, confirming successful token receipt.