GoPlus SafeToken Locker for Uni V4
What is a Liquidity Locker?
In Uniswap V4, when developers create a liquidity pool, they receive an NFT representing their LP position. This NFT can be transferred like any other token on the blockchain or bridged to another chain.
The liquidity locker service allows developers to store their NFT in a smart contract, revoking their permission to move the NFT from a start date to an end date. This provides additional security and transparency for projects, demonstrating to investors that the project's liquidity is locked.
Key Features
1. Liquidity Locking
- Support for locking Uniswap V4 LP position NFTs
- Flexible fee structure
2. Fee Management
- Multiple fee configurations (DEFAULT, LVP, LLP)
- Customizable LP fees and collection fees
3. Liquidity Management
- Support for increasing liquidity of locked positions
- Support for decreasing liquidity after lock expiration
- Fee collection functionality
Contract Addresses
Supported Chains and Contract Addresses
Chain | Locker Address |
---|---|
Ethereum | 0xE7873eb8DDA56ed49E51c87185ebCb93958E76F2 |
Base | 0xf5CDAdD3cB89A69Ab72da3CFD93c505c1B9Fcca1 |
Unichain | 0x6f8f5E4B583E1c58B7DaDbED78931dFAf974CcB8 |
Fee Structures
Name | LP Fee | Collect Fee | Lock Fee |
---|---|---|---|
DEFAULT | 0.4% | 1.6% | 0.05 ETH |
LVP | 0.64% | 0.8% | 0 ETH |
LLP | 0.24% | 2.8% | 0 ETH |
Main Operations
Lock Liquidity
function lockNFTPosition(
uint256 tokenId,
uint256 unlockTime,
address collector_,
string memory feeName
) external payable returns (uint256 lockId)
Unlock Liquidity
function unlockLiquidity(uint256 lockId) external
Collect Fees
function collect(
uint256 lockId,
address recipient
) external returns (uint256 amount0, uint256 amount1, uint256 fee0, uint256 fee1)
Increase Liquidity
function increaseLiquidity(
uint256 lockId,
uint256 amount0Max,
uint256 amount1Max,
uint48 deadline
) external payable returns (uint256 amount0Used, uint256 amount1Used)
Usage Recommendations
- Understand all fee structures before locking liquidity
- Choose appropriate fee configuration (DEFAULT, LVP, or LLP)
- Set reasonable lock duration
- Regularly collect accumulated fees
- Use increase liquidity feature when needed
- Unlock or extend lock duration promptly after expiration
This locker service provides a complete liquidity management solution for Uniswap V4 projects, helping to build trust and protect investor interests.