- Removing HBAR-token liquidity
- Removing token-token liquidity
- Removing HBAR-token liquidity for tokens with custom fees
Contract ID: SaucerSwapV1RouterV3
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
- JavaScript SDK
Removing token-token liquidity
Remove liquidity from an existing token/token liquidity pool. Function name:removeLiquidity
Recommended gas limit: 1,600,000
Code overview
- JavaScript SDK
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
- JavaScript SDK
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.