Skip to content

Commit

Permalink
fix vooi
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Sep 2, 2024
1 parent bc44dbd commit 341a559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aggregator-derivatives/vooi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const startTimestampBlast = 1719792000; // 01.07.2024
const startTimestampOpBNB = 1717200000; // 01.06.2024
const startTimestampBase = 1722470400; // 01.08.2024

const fetchArbitrum = async (timestamp: number): Promise<FetchResult> => {
const fetchArbitrum = async (timestamp: number, _t: any, options: FetchOptions): Promise<FetchResult> => {
// const timestamp = options.toTimestamp
const fetchData = await fetchURL(`${URL}${endpoint}?ts=${timestamp}`) // returns data for the day before
const fetchData = await fetchURL(`${URL}${endpoint}?ts=${options.startOfDay}`) // returns data for the day before
let orderlyItem = fetchData.find(((item) => item.protocol == "orderly"))
if (!orderlyItem) {
orderlyItem = {dailyVolume: 0, totalVolume: 0}
Expand Down

0 comments on commit 341a559

Please sign in to comment.