Compare commits

...

2 commits

Author SHA1 Message Date
41a3d52319 Merge pull request 'fix: parse slot0 response as array — viem v2 compat (#2)' (#3) from fix/issue-2 into master 2026-04-05 16:54:00 +00:00
Agent
f1e4c3772e 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>
2026-04-05 16:50:46 +00:00

View file

@ -556,7 +556,9 @@ async function loadLiquidityStats({ notify = false }: { notify?: boolean } = {})
}); });
let currentTick: number | null = null; 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; currentTick = slot0Response.tick;
} }