import { compareAddresses } from 'src/app/shared/utils/utils' ; import { SymbolToken } from '@shared/models/tokens/symbol-token' ; export type FeeAmount = 500 | 3000 | 10000 ; /**
 * Represents liquidity pool in uni v3.
 */ export class LiquidityPool { constructor ( public readonly address , public readonly token0 , public readonly token1 , public readonly fee ) { } param tokenA param tokenB public isPoolWithTokens ( tokenA , tokenB ) { return ( ( compareAddresses ( this . token0 . address , tokenA ) && compareAddresses ( this . token1 . address , tokenB ) ) || ( compareAddresses ( this . token1 . address , tokenA ) && compareAddresses ( this . token0 . address , tokenB ) ) ) ; } }