diff --git a/src/EventHandlers/CLFactory.ts b/src/EventHandlers/CLFactory.ts index afe6b21..b6806b3 100644 --- a/src/EventHandlers/CLFactory.ts +++ b/src/EventHandlers/CLFactory.ts @@ -60,7 +60,7 @@ CLFactory.PoolCreated.handlerWithLoader({ poolTokenSymbols[0], poolTokenSymbols[1], false, // Pool is not stable - true // Pool is CL + Number(event.params.tickSpacing) // Pool is CL ), token0_id: TokenIdByChain(event.params.token0, event.chainId), token1_id: TokenIdByChain(event.params.token1, event.chainId), diff --git a/src/EventHandlers/PoolFactory.ts b/src/EventHandlers/PoolFactory.ts index 16d58cf..064ae90 100644 --- a/src/EventHandlers/PoolFactory.ts +++ b/src/EventHandlers/PoolFactory.ts @@ -53,7 +53,7 @@ PoolFactory.PoolCreated.handlerWithLoader({ poolTokenSymbols[0], poolTokenSymbols[1], event.params.stable, - false // Pool is not CL + 0 // Pool is not CL ), token0_id: TokenIdByChain(event.params.token0, event.chainId), token1_id: TokenIdByChain(event.params.token1, event.chainId), diff --git a/src/Helpers.ts b/src/Helpers.ts index 3773001..ebe34b5 100644 --- a/src/Helpers.ts +++ b/src/Helpers.ts @@ -17,7 +17,7 @@ export function generatePoolName( token0Symbol: string, token1Symbol: string, isStable: boolean, - isCL: boolean + clTickSpacing: number ): string { let poolType = ""; if (isStable) { @@ -25,8 +25,8 @@ export function generatePoolName( } else { poolType = "Volatile"; } - if (isCL) { - poolType = "CL"; + if (clTickSpacing != 0) { + poolType = "CL-" + clTickSpacing; } return `${poolType} AMM - ${token0Symbol}/${token1Symbol}`; }