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

Yield Harvest and Reinvest 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

Yield Harvest and Reinvest Tool lets you harvest yield from multiple DeFi positions—staking, farming, lending—and automatically reinvest it into a target strategy in a single batched transaction. Instead of manually harvesting each position, swapping rewards, and reinvesting separately—which consumes time and gas—you add your positions, check your accrued yield, and execute a one-click harvest-and-reinvest operation. The tool reads your yield from each position, calculates the total, and reinvests it into the specified pool or strategy with slippage protection. This is essential for DeFi users who want to maximize yield without manual intervention.

HOW TO USE

Connect your EVM wallet and select the network. Enter the harvest/reinvest router contract that supports your positions. In the input area, list each position you want to harvest using the format: contract,tokenId (or pool address). Enter the reinvest target (pool address or strategy) and set your slippage tolerance. Click "Add positions" to load them, then click "Check yield" to view your accrued rewards from each position—the tool displays the total yield amount and token symbol. Review the details, then click "Harvest & reinvest" to execute the transaction. The tool harvests yield from all positions, optionally swaps rewards if needed, and reinvests them into the target strategy.

TECHNICAL MECHANISM

The tool first queries each position's yield using the harvest contract's getYield() function, which returns the accrued rewards for the specific position (NFT ID or pool). It also reads the reward token address, decimals, and symbol for display. The harvestAndReinvest() function on the harvest contract takes arrays of NFT contracts and token IDs, the reinvest target address, and slippage. It performs the following steps in a single batched transaction: (1) claims rewards from each position via the appropriate harvest/claim interface, (2) aggregates the rewards, (3) optionally swaps the reward tokens to the target pool's required token using a DEX router, and (4) adds liquidity or deposits into the target strategy. The tool uses receipt.effectiveGasPrice for accurate gas reporting and applies slippage protection.

WHAT IT CANNOT SEE

This tool cannot harvest positions that are not owned by the connected wallet—ownership is verified before proceeding. It relies on each protocol supporting a harvest/claim interface; protocols that do not expose a standard harvest function or use non-standard reward mechanisms are not supported. The tool cannot guarantee that the reinvestment will be profitable—it may result in lower returns or impermanent loss. It also cannot avoid slippage entirely; slippage protection is applied but cannot guarantee execution if market conditions move against the user.

PLEASE NOTE

Harvesting and reinvesting may incur gas fees and protocol-specific fees (e.g., performance fees, withdrawal fees). Ensure you understand the fee structure before executing. The harvest contract and reinvest target must be trusted; verify their 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.