Skip to content

Commit

Permalink
add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aburkut committed May 20, 2024
1 parent beac0ce commit 2ef6276
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dex/uniswap-v3/uniswap-v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2ef6276

Please sign in to comment.