Create a new HBAR/token liquidity pool and provide it with initial liquidity.Function name: addLiquidityETHNewPoolโฝ Recommended gas: 3,200,000 gwei (~ $0.27 USD)
Parameter Name
Description
address token
EVM address of the token to pair with HBAR
uint amountTokenDesired
The maximum token amount in its smallest unit
uint amountTokenMin
The minimum token amount in its smallest unit
uint amountETHMin
The minimum HBAR amount in its smallest unit (tinybar)
A spender allowance for the router is required for the HTS token.
The addLiquidityETHNewPool 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.
Create a new token/token liquidity pool and provide it with initial liquidity.Function name: addLiquidityNewPoolโฝRecommended gas: 3,200,000 gwei (~ $0.27 USD)
Parameter Name
Description
address tokenA
EVM address of the first HTS token
address tokenB
EVM address of the second HTS token
uint amountADesired
The maximum amount for the first token in its smallest unit
uint amountBDesired
The maximum amount for the second token in its smallest unit
uint amountAMin
The minimum amount for the first token in its smallest unit
uint amountBMin
The minimum amount for the second token in its smallest unit