fix: Array.isArray slot0 fallback branch is unreachable dead code (#362)
This commit is contained in:
parent
1f9d11d494
commit
feaa226f24
1 changed files with 0 additions and 2 deletions
|
|
@ -564,8 +564,6 @@ async function loadLiquidityStats({ notify = false }: { notify?: boolean } = {})
|
|||
let currentTick: number | null = null;
|
||||
if (isRecord(slot0Response) && typeof slot0Response.tick === 'number') {
|
||||
currentTick = slot0Response.tick;
|
||||
} else if (Array.isArray(slot0Response) && typeof slot0Response[1] === 'number') {
|
||||
currentTick = slot0Response[1];
|
||||
}
|
||||
|
||||
if (currentTick === null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue