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

Auto-Compound Trigger Tool

DeFi · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
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

Auto-Compound Trigger Tool watches your staking or yield farming position, monitors the accrued rewards balance directly from the blockchain, and when the rewards exceed a user-defined threshold, automatically triggers a compound transaction via window.ethereum to claim and reinvest the rewards back into the position. This maximizes your yield by ensuring rewards are compounded at optimal times without manual intervention.

WHERE IT RUNS

This tool operates as a userscript within the BotGentz extension framework, running directly in your browser on any website. It works on any EVM-compatible blockchain page—Ethereum, Polygon, Arbitrum, Optimism, and more—where staking or yield farming pools are deployed. The tool integrates seamlessly into your workflow, appearing as a draggable panel that stays accessible as you manage your DeFi positions.

HOW TO USE

Enter your pool contract address and reward token address in the "Pool Setup" section. Configure your compound settings: set the minimum reward threshold (in tokens), gas limit, and refresh interval. Toggle auto-execute on or off to choose whether compounds happen automatically or require manual confirmation. Click "Connect & Start Monitoring" to connect your real wallet extension, which will begin checking your rewards at the specified interval. Use "Compound Now" to manually trigger a compound, or "Check Rewards Now" to see your current rewards balance. The panel displays your current rewards, status, and last compound time.

TECHNICAL OPERATION

Auto-Compound Trigger Tool uses raw JSON-RPC calls via window.ethereum.request() to interact with the blockchain—no external library required for basic operations. It loads ethers at runtime using a simple script tag injection for ABI encoding and contract interactions. The tool attempts multiple common view function names (earned, pendingRewards, rewards, getReward) to fetch the user's pending rewards from the pool contract. It compares the reward amount against the user-defined threshold and triggers a compound when the threshold is met. When auto-execute is enabled, it constructs and submits a transaction using eth_sendTransaction with the compound function call. Gas costs are calculated from the receipt's effectiveGasPrice (not tx.gasPrice) for accurate post-EIP-1559 cost tracking. The tool uses setInterval for automatic refreshes based on the user-defined interval, and tracks the last compound time for monitoring purposes.

THE PANEL

The Auto-Compound Trigger Tool panel is fully draggable and remembers its position between sessions using GM_setValue. It snaps to the edge of the viewport for a clean interface and can be collapsed to a small icon when not in use. The panel is resizable to accommodate longer content. Press Escape to quickly close or collapse the panel. The design is optimized for productivity with a dark theme, clear visual hierarchy, and responsive controls that adapt to your workflow.

PLEASE NOTE

This tool requires the free BotGentz extension installed in your browser and a real EVM wallet extension (MetaMask, Rabby, etc.) already installed. EVM chains only—this does not work on non-EVM blockchains. The tool cannot detect rewards if the contract does not expose a view function for pending rewards, cannot bypass transaction failure if the compound call reverts on-chain, and cannot compound if the user does not have sufficient native gas tokens in the wallet. No private keys are stored or transmitted—all signing happens directly through your wallet extension. Always verify the pool and reward addresses before starting.

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.