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

Stableswap Pool Withdrawal 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

Stableswap Pool Withdrawal Tool enables users to withdraw tokens from stableswap pools by burning LP tokens. The tool reads your connected wallet address, stableswap pool contract address, token addresses (pool tokens), LP token balance, LP token amount to burn, pool token amounts, pool amplification factor, current swap fee, withdrawal fee, current block timestamp, and gas prices. It displays the pool's amplification factor, swap fee, withdrawal fee, your LP balance, and pool token balances before you withdraw. You can choose to withdraw a specific amount of LP tokens or withdraw your entire position. Once confirmed, the tool executes the withdrawal, burning your LP tokens and returning the underlying pool tokens.

HOW TO USE

Connect your wallet and select your network. Enter the stableswap pool contract address and the pool token addresses (comma-separated). Choose whether to withdraw a specific LP token amount or withdraw all. If withdrawing a specific amount, enter the LP token amount in the input field. Click "Fetch pool status" to load the pool details including the amplification factor, swap fee, withdrawal fee, your LP balance, and pool token balances. Review all details carefully—the tool will show you the pool parameters and your LP balance. If everything is correct, click "Withdraw" to burn your LP tokens and receive the underlying tokens.

THE REAL MECHANISM — STABLESWAP WITHDRAWAL WITH FEE AND BALANCE TRACKING

Unlike standard AMM pool withdrawals, stableswap pools apply a withdrawal fee that may differ from the swap fee. The getPoolInfo function returns the amplification factor (which determines the curve shape), the swap fee (in basis points), the withdrawal fee (in basis points), the LP token address, and the current balances of all pool tokens. The withdraw function takes the LP token amount to burn and an array of minimum amounts for each token (for slippage protection). It verifies that the LP amount does not exceed the user's balance, burns the LP tokens, and transfers the underlying tokens to the user. The withdrawal fee is applied to the amount withdrawn. The tool reads all pool data via getPoolInfo and validates the LP amount before enabling the withdraw button. All arithmetic uses ethers.js BigNumber with the token's decimal precision, and gas costs are reported using receipt.effectiveGasPrice.

WHAT IT CANNOT SEE

Cannot predict pool impermanent loss—the tool cannot forecast the token ratios at withdrawal time. It cannot ensure pool solvency—the tool has no visibility into the protocol's reserves. It cannot detect if the pool contract contains vulnerabilities—the tool does not audit the contract logic. It cannot verify off-chain token valuation accuracy—the tool relies on the pool's valuation and cannot verify external prices. It cannot recover funds if the withdrawal fails or if the pool is compromised.

PLEASE NOTE — EVM CHAINS ONLY

This tool exclusively supports EVM-compatible chains where ethers.js can connect via standard JSON-RPC. It does not support non-EVM chains such as Solana, Tron, Starknet, SUI, TON, Aptos, Bitcoin, Cosmos, or XRP. The pool contract must implement the specific interface expected by this tool (getPoolInfo, withdraw, getTokenCount, getToken). Always review the pool parameters, withdrawal fee, and your LP balance before withdrawing. This tool is a withdrawal interface, not a financial advisor or investment strategist.

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.