@maxosllc/smart-order-router
Version:
BlockDAG Smart Order Router
22 lines (21 loc) • 861 B
TypeScript
import { Token } from '@uniswap/sdk-core';
import { FeeAmount } from '@uniswap/v3-sdk';
import { ChainId } from '../../../src/util/chains';
/**
* Computes a pool address
* @param factoryAddress The Uniswap V3 factory address
* @param tokenA The first token of the pair, irrespective of sort order
* @param tokenB The second token of the pair, irrespective of sort order
* @param fee The fee tier of the pool
* @param initCodeHashManualOverride Override the init code hash used to compute the pool address if necessary
* @param chainId
* @returns The pool address
*/
export declare function computePoolAddress({ factoryAddress, tokenA, tokenB, fee, initCodeHashManualOverride, chainId, }: {
factoryAddress: string;
tokenA: Token;
tokenB: Token;
fee: FeeAmount;
initCodeHashManualOverride?: string;
chainId?: ChainId;
}): string;