From 2ef6276c1903a074930a6d8ce0344310c865c6dc Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Mon, 20 May 2024 12:58:40 +0300 Subject: [PATCH] add fix --- src/dex/uniswap-v3/uniswap-v3.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dex/uniswap-v3/uniswap-v3.ts b/src/dex/uniswap-v3/uniswap-v3.ts index 9fd5e540b..3fe1c9feb 100644 --- a/src/dex/uniswap-v3/uniswap-v3.ts +++ b/src/dex/uniswap-v3/uniswap-v3.ts @@ -289,7 +289,11 @@ export class UniswapV3 const [token0, token1] = this._sortTokens(srcAddress, destAddress); - const key = `${token0}_${token1}_${fee}`.toLowerCase(); + let key = `${token0}_${token1}_${fee}`.toLowerCase(); + + if (tickSpacing) { + key = `${key}_${tickSpacing}`; + } if (!pool) { const notExistingPoolScore = await this.dexHelper.cache.zscore(