Remove liquidity from an existing HBAR/token liquidity pool.Function name: removeLiquidityETH⛽ Recommended gas: 2,800,000 gwei (~ $0.24 USD)
Parameter Name
Description
address token
EVM address of the token paired with HBAR
uint liquidity
LP liquidity amount to remove
uint amountTokenMin
The minimum token amount to receive in its smallest unit
uint amountETHMin
The minimum HBAR amount to receive in its smallest unit
address to
EVM address to receive the tokens
uint deadline
Deadline in Unix seconds
Copy
Ask AI
function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline) external returns (uint amountToken, uint amountETH);
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.
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: 3,000,000 gwei (~ $0.26 USD)
Parameter Name
Description
address token
EVM address of the token paired with HBAR
uint liquidity
LP liquidity amount to remove in its smallest unit
uint amountTokenMin
The minimum token amount to receive in its smallest unit
uint amountETHMin
The minimum HBAR amount to receive in its smallest unit
address to
EVM address to receive the tokens
uint deadline
Deadline in Unix seconds
Copy
Ask AI
function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline) external returns (uint amountETH);
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.