hermes-v2-sdk
Version:
⚒️ An SDK for building applications on top of Hermes V2
19 lines (18 loc) • 801 B
TypeScript
import { NativeToken } from 'maia-core-sdk';
import { FeeAmount } from '../../constants/constants';
/**
* 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
* @returns The pool address
*/
export declare function computePoolAddress({ factoryAddress, tokenA, tokenB, fee, initCodeHashManualOverride, }: {
factoryAddress: string;
tokenA: NativeToken;
tokenB: NativeToken;
fee: FeeAmount;
initCodeHashManualOverride?: string;
}): string;