Skip to content

Commit

Permalink
fix dayID
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Jan 15, 2025
1 parent fa80ee3 commit cab8cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dexs/wombat-exchange/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const endpoints: TEndpoint = {

const fetchVolume = (chain: Chain) => {
return async (options: FetchOptions): Promise<FetchResultV2> => {
const { startTimestamp} = options;
const { startOfDay} = options;
const dayTimestamp = getUniqStartOfTodayTimestamp(
new Date(startTimestamp * 1000)
new Date(startOfDay * 1000)
);
const todaysBlock = await getBlock(dayTimestamp, chain, {});
const dayID = dayTimestamp / 86400;
Expand Down

0 comments on commit cab8cc2

Please sign in to comment.