Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi committed Aug 31, 2024
1 parent d097cd3 commit cc54b43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aggregator-derivatives/vooi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const startTimestampBase = 1722470400; // 01.08.2024

const fetchArbitrum = async (options: FetchOptions): Promise<FetchResult> => {
const timestamp = options.toTimestamp
const fetchData = await fetchURL(`${URL}${endpoint}?ts=${timestamp}`)
const fetchData = await fetchURL(`${URL}${endpoint}?ts=${timestamp}`) // returns data for the day before
let orderlyItem = fetchData.find(((item) => item.protocol == "orderly"))
if (!orderlyItem) {
orderlyItem = {dailyVolume: 0, totalVolume: 0}
Expand Down Expand Up @@ -84,6 +84,5 @@ const adapter: SimpleAdapter = {
start: startTimestampBase
},
},
version: 2
}
export default adapter
export default adapter

0 comments on commit cc54b43

Please sign in to comment.