Create a New Pool
Create a new HBAR/token or token/token liquidity pool.
Last updated
Create a new HBAR/token or token/token liquidity pool.
Last updated
There are two methods to add a new liquidity pool:
Both methods supports HTS tokens with custom fees.
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)
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)
address to
EVM address to receive the new liquidity tokens
uint deadline
Deadline in Unix seconds
Resources:
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)
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
address to
EVM address to receive the new liquidity tokens
uint deadline
Deadline in Unix seconds
Resources: