Skip to content

Commit

Permalink
fix issue pass time
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Feb 16, 2024
1 parent 0a39fd8 commit e287080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dexs/zkSwap_Finance/zkswapFinance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const getToDateVolume = async (chain: string, timestamp: number) => {
let returnCount = 1000;
let dayMiliseconds = 24 * 60 * 60;
let volumSum = 0;

let startTimestampQuery = 0;
const endDateTimestamp = Number(startDayTimestamp) + dayMiliseconds;

Expand Down Expand Up @@ -104,7 +104,7 @@ const getToDateVolume = async (chain: string, timestamp: number) => {

export const fetchVolume = (_chain: string) => {
return async (_timestamp: number, _: ChainBlocks, options: FetchOptions) => {
return getData(options);
return getData({...options, startOfDay: _timestamp});
// const totalVolume = await getToDateVolume(options);
};
};

0 comments on commit e287080

Please sign in to comment.