This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

LP Fee Claim Without Withdraw Tool

DeFi · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — nothing to install.
CategoryDeFi
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

LP Fee Claim Without Withdraw Tool lets you claim accumulated trading fees from your LP positions without withdrawing the underlying liquidity. Instead of having to remove liquidity to collect fees—which would require re-adding liquidity later—you can simply claim the fees while keeping your position intact and earning more fees. The tool reads your accrued fees from each LP position, verifies ownership, and executes a batch fee claim transaction using the position manager's collect function. This is essential for LPs who want to regularly harvest fees without disrupting their liquidity provision strategy.

HOW TO USE

Connect your EVM wallet and select the network. Enter the NonfungiblePositionManager contract address (e.g., Uniswap V3). In the input area, list the LP token IDs for which you want to claim fees. Click "Add token IDs" to load them, then click "Check fees" to verify that you own each position and to view the accrued fee amounts—the tool displays the fee balance for each token. Review the status, then click "Claim fees" to execute the batch fee claim transaction. The tool collects the fees from all specified positions and sends them to your wallet, while your liquidity remains in the pool.

TECHNICAL MECHANISM

The tool first verifies ownership of each LP position by calling ownerOf(tokenId) on the NonfungiblePositionManager contract. It then reads each position's accrued fees using the positions(tokenId) function, which returns tokensOwed0 and tokensOwed1—the accumulated fees in both tokens. The claim is performed by calling the collect() function on the NonfungiblePositionManager, which takes a CollectParams struct containing the token ID, recipient address, and max amounts to collect (using type(uint128).max to claim all fees). The collect function transfers the fee tokens to the recipient without affecting the position's liquidity. The tool uses receipt.effectiveGasPrice for accurate gas reporting and provides progress feedback during the claim process.

WHAT IT CANNOT SEE

This tool cannot claim fees from positions that are not owned by the connected wallet—ownership is verified before proceeding. It relies on the DEX contract supporting fee collection without withdrawal via the collect() function; positions in pools that do not support this function or use non-standard LP tokens are not supported. The tool does not support positions with unclaimed fees that are locked or require additional steps to claim. Gas costs scale with the number of positions claimed, which can be significant for large batches.

PLEASE NOTE

Claiming fees does not affect your liquidity position—your tokens remain in the pool and continue earning fees. However, claiming fees may incur gas costs that could outweigh the fee amount for small positions. The position manager contract must be trusted; verify its security and audit status before use. This tool is for EVM chains only and does not support non-EVM networks.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.