Skip to main content
Outlined below are three methods to remove liquidity from an existing pool:
A spender allowance for the router is required for the LP token.
removeLiquidity supports HTS tokens with custom fees.

Removing HBAR-token liquidity

Remove liquidity from an existing HBAR/token liquidity pool. Function name: removeLiquidityETH Recommended gas limit: 2,800,000
The removeLiquidityETH function operates in HBAR but derives its name from Uniswap on Ethereum. This name was kept to simplify integration for developers versed in Uniswap tools.

Code overview

Resources:

Removing token-token liquidity

Remove liquidity from an existing token/token liquidity pool. Function name: removeLiquidity Recommended gas limit: 1,600,000

Code overview

Resources:

Removing HBAR-token liquidity supporting tokens with custom fees

Remove liquidity from an existing HBAR/token liquidity pool supporting HTS tokens with custom fees on transfer. Function name: removeLiquidityETHSupportingFeeOnTransferTokens Recommended gas limit: 3,000,000
The removeLiquidityETHSupportingFeeOnTransferTokens function operates in HBAR but derives its name from Uniswap on Ethereum. This name was kept to simplify integration for developers versed in Uniswap tools.

Code overview

Resources:

Next steps

Adding liquidity (V1)

Provide liquidity to an existing V1 pool.

Get pool reserves (V1)

Read current reserves for a pool.

Contract deployments

Router, factory, and token IDs for mainnet and testnet.