Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau committed Oct 22, 2024
1 parent c3cd754 commit 72c423a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export async function findFundingIndexMaps(
unnest(ARRAY[${heightNumbers.join(',')}]) AS "searchHeight"
WHERE
"effectiveAtHeight" > ${Big(minHeight).minus(FOUR_HOUR_OF_BLOCKS).toFixed()} AND
"effectiveAtHeight" < ${Big(maxheight)} AND
"effectiveAtHeight" <= ${Big(maxheight)} AND
"effectiveAtHeight" <= "searchHeight"
ORDER BY
"perpetualId",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,10 +657,11 @@ async function getVaultMapping(): Promise<VaultMapping> {
'perpetual market.',
subaccountId,
});
validVaultMapping[subaccountId] = vaultMapping[subaccountId];
continue;
}
validVaultMapping[subaccountId] = vaultMapping[subaccountId];
}
return validVaultMapping;
return vaultMapping;
}

export default router;

0 comments on commit 72c423a

Please sign in to comment.