Contract ID: SaucerSwapV1RouterV3
Ensure that the client has the LP token associated before adding liquidity.
A spender allowance for the Router contract is required for HTS tokens.
Both
addLiquidityETH and addLiquidity support HTS tokens containing custom fees.Adding HBAR-token liquidity
Add more liquidity to an existing HBAR/token liquidity pool. Function name:addLiquidityETH
Recommended gas limit: 240,000
The
addLiquidityETH 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
Adding token-token liquidity
Add more liquidity to an existing token/token liquidity pool. Function name:addLiquidity
Recommended gas limit: 240,000
Code overview
- JavaScript SDK
Next steps
Removing liquidity (V1)
Withdraw your share of a V1 pool.
Create a new pool (V1)
Create the pool first if it does not exist.
Get pool reserves (V1)
Read current reserves before sizing amounts.