addLiquidity

Adding liquidity to a coin pair liquidity pool

.addLiquidity({
  token0: TOKENS.KDA,
  token1: TOKENS.ABC,
  amountDesired0: 0.2,
  amountDesired1: 1.0,
  slippage: '0.05'
})
Parameter
Type
Default Value

account

Account

config.account (โ€ )

secretKey

string

config.secretKey (โ€ )

token0

Token

token1

Token

amountDesired0

number

amountDesired1

number

slippage

string

โ€  Can be initialized in the SDK client constructor, i.e

new KaddexSdk({ account, secretKey })

Last updated