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

Multi-Pool Fee Aggregator and Claim 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

Multi-Pool Fee Aggregator and Claim Tool lets you claim accumulated trading fees from LP positions across multiple pools—different token pairs and fee tiers—in a single batched transaction. Instead of managing each pool separately and submitting individual fee claim transactions, you add all your LP token IDs (optionally with labels for clarity), verify your accrued fees, and claim them all at once. The tool checks ownership of each position, reads the accrued fees from each position, and executes a batch collect operation using the NonfungiblePositionManager. This is essential for LPs who have positions spread across multiple pools and want to efficiently harvest fees without manual overhead.

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 each LP token ID you want to claim fees from, optionally with a label for easier identification (e.g., 123,ETH/USDC 0.3%). Click "Add entries" 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 total fees across all positions. Review the status, then click "Claim all fees" to execute the batch fee claim transaction. The tool collects fees from all specified positions and sends them to your wallet in one transaction.

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. For the batch claim, the tool sequentially calls the collect() function on the NonfungiblePositionManager for each owned position, passing a CollectParams struct containing the token ID, recipient address (the connected wallet), and max amounts (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 aggregates the total fees across all pools for display and uses receipt.effectiveGasPrice for accurate gas reporting.

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 across pools, which can be significant for large batches.

PLEASE NOTE

Claiming fees does not affect your liquidity positions—your tokens remain in the pools 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.