Function removeLiquidity

  • Parameters

    • __namedParameters: {
          chainId: CHAIN_IDS;
          userAddress: `0x${string}`;
          token0: `0x${string}`;
          token1: `0x${string}`;
          salt: `0x${string}`;
          amount: string;
          options?: {
              slippage?: number;
              useSubgraph?: boolean;
          } & DefaultOptions & {
              gasLimit?: bigint;
              gasPriceLimit?: bigint;
          };
      }
      • chainId: CHAIN_IDS
      • userAddress: `0x${string}`
      • token0: `0x${string}`
      • token1: `0x${string}`
      • salt: `0x${string}`
      • amount: string
      • Optional options?: {
            slippage?: number;
            useSubgraph?: boolean;
        } & DefaultOptions & {
            gasLimit?: bigint;
            gasPriceLimit?: bigint;
        }

    Returns Promise<{
        transaction: undefined | Transaction;
        result: {
            currencyA: CurrencyFlow;
            currencyB: CurrencyFlow;
            lpCurrency: Currency6909Flow;
        };
    }>