fix: fix: "Unable to determine current pool tick" on /app/cheats page (#2)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Agent 2026-04-05 16:50:46 +00:00
parent 2f25febfe6
commit f1e4c3772e

View file

@ -556,7 +556,9 @@ async function loadLiquidityStats({ notify = false }: { notify?: boolean } = {})
});
let currentTick: number | null = null;
if (isRecord(slot0Response) && typeof slot0Response.tick === 'number') {
if (Array.isArray(slot0Response) && typeof slot0Response[1] === 'number') {
currentTick = slot0Response[1];
} else if (isRecord(slot0Response) && typeof slot0Response.tick === 'number') {
currentTick = slot0Response.tick;
}