From e41f95094351ba4a5a66cc096b5042bf41614747 Mon Sep 17 00:00:00 2001 From: kwoktung Date: Mon, 7 Oct 2024 20:26:02 +0800 Subject: [PATCH] fix: tickToWord code --- docs/sdk/v3/guides/advanced/02-pool-data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sdk/v3/guides/advanced/02-pool-data.md b/docs/sdk/v3/guides/advanced/02-pool-data.md index cbcdd0e26..51fc2e48e 100644 --- a/docs/sdk/v3/guides/advanced/02-pool-data.md +++ b/docs/sdk/v3/guides/advanced/02-pool-data.md @@ -211,7 +211,7 @@ function tickToWord(tick: number): number { if (tick < 0 && tick % tickSpacing !== 0) { compressed -= 1 } - return tick >> 8 + return compressed >> 8 } const minWord = tickToWord(-887272)