Skip to main content

Function: buildAddLiquidityDto()

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / buildAddLiquidityDto

Function: buildAddLiquidityDto()

buildAddLiquidityDto(input): AddLiquidityDTO

Defined in: packages/gswap-sdk/dist/index.d.ts:3870

Builds the AddLiquidity DTO: exactly one of depositQuantityToken0 / depositQuantityToken1 (the other side is derived on chain). Key order: token0, token1, fee, tickLower, tickUpper, uniqueKey, <deposit>.

Parameters​

input​

AddLiquidityInput

Returns​

AddLiquidityDTO