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

Liquidity Mining Program Exit 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

This tool enables DeFi users and liquidity providers to exit liquidity mining programs. Exiting a liquidity mining program withdraws your staked tokens and any earned rewards, closing your position in the pool. Depending on the program, early exits may incur penalties such as reduced rewards or forfeited portions of the stake. It connects to your wallet and reads the liquidity mining contract address, pool ID, staked balance, earned rewards, withdrawal penalty, exit status, exit history, and timestamps. The tool signs and submits transactions to exit liquidity mining programs, withdraw staked tokens, claim rewards, pay penalties, record exit metadata, and emit exit events.

HOW TO USE

1. Connect your wallet using the wallet bridge (supports MetaMask, WalletConnect, and other EVM-compatible wallets).

2. Select the target network that matches your liquidity mining contract deployment.

3. Enter the liquidity mining contract address and the pool ID, then click "load contract" to initialize the connection.

4. Click "fetch position" to retrieve your staked balance, earned rewards, withdrawal penalty percentage, and exit status.

5. Review your position details — if you have no staked balance or rewards, there is nothing to exit.

6. Click "validate exit" to verify that you have a position and it is eligible for exit.

7. Click "check exit history" to view your past exits from this pool.

8. Review the staked balance, earned rewards, and penalty before executing.

9. Click "exit program" to sign and submit the transaction that withdraws your staked tokens and rewards.

TECHNICAL MECHANISM

The tool uses ethers.js v5.7.2 to interact with any EVM-compatible liquidity mining contract that implements a standard exit interface (getPosition(address, uint256) view returns (uint256 staked, uint256 rewards, uint8 status), getPenalty(uint256) view returns (uint256), exit(uint256) external, getExitHistory(address, uint256) view). The exit function validates that the caller has a position, calculates any applicable penalty, transfers the staked tokens and rewards to the caller, and updates the user's status to "exited" or "penalized" depending on the penalty applied. The contract typically calculates penalties based on the time remaining in the lock period or other program-specific rules. The getPenalty view returns the penalty percentage for a given pool, allowing users to see the cost of exiting early. Transaction handling follows EIP-1559 gas price calculations using receipt.effectiveGasPrice for accurate cost reporting. Exit metadata is recorded both in the contract's history and locally for the user's reference.

WHAT IT CANNOT SEE

This tool operates purely on-chain and cannot verify off-chain market conditions — it does not assess whether exiting is optimal given current market prices, liquidity conditions, or alternative opportunities. It cannot predict reward outcomes — the tool cannot forecast future rewards or whether exiting now is better than waiting. It cannot ensure optimal exit timing — the tool does not provide guidance on when to exit to maximize returns. It cannot detect withdrawal penalties — while the tool displays the penalty percentage, it cannot guarantee that the penalty is accurate or that it hasn't changed. The tool also cannot guarantee that exits are profitable — depending on market conditions and penalties, exiting may result in a loss.

PLEASE NOTE

This tool works exclusively with EVM-compatible blockchain networks (Ethereum, Polygon, Arbitrum, Optimism, Base, etc.). It requires the liquidity mining contract to implement the exit interface described above. All transactions incur gas fees paid by the connected wallet. The tool maintains no persistent storage — all state is refreshed from the blockchain on each session. Exiting a liquidity mining program is a significant decision — ensure you understand the withdrawal penalties, the timing of rewards, and the current market conditions before executing. Consider waiting until lock periods end to avoid penalties. Always test on a testnet first and verify that the exit amount and penalties are correct before exiting with real funds.

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.