Skip to content

Commit

Permalink
Merge branch 'master' of ssh://github.com-lemonpac/Intent-X/dimension…
Browse files Browse the repository at this point in the history
…-adapters
  • Loading branch information
lemonpac committed Apr 4, 2024
2 parents ebe411b + ae8d14f commit a2d2e6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dexs/aevo/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SimpleAdapter } from "../../adapters/types";
import fetchURL from "../../utils/fetchURL";
import { CHAIN } from "../../helpers/chains";
import { getTimestampAtStartOfNextDayUTC } from "../../utils/date";
import { getTimestampAtStartOfDayUTC } from "../../utils/date";

interface IAevoVolumeResponse {
daily_volume: string;
Expand Down Expand Up @@ -29,7 +29,7 @@ export async function fetchAevoVolumeData(
/** Timestamp representing the end of the 24 hour period */
timestamp: number
) {
const dayTimestamp = getTimestampAtStartOfNextDayUTC(timestamp);
const dayTimestamp = getTimestampAtStartOfDayUTC(timestamp);
const url = aevoVolumeEndpoint(dayTimestamp * 1e9);
const aevoVolumeData = await getAevoVolumeData(url);
const dailyVolume = Number(aevoVolumeData.daily_volume).toFixed(2);
Expand Down

0 comments on commit a2d2e6b

Please sign in to comment.