diff --git a/aggregator-derivatives/vooi/index.ts b/aggregator-derivatives/vooi/index.ts index ac81af4297..ae4a8e5cb6 100644 --- a/aggregator-derivatives/vooi/index.ts +++ b/aggregator-derivatives/vooi/index.ts @@ -1,5 +1,5 @@ import fetchURL from "../../utils/fetchURL"; -import { FetchResult, FetchResultV2, SimpleAdapter } from "../../adapters/types"; +import { FetchResult } from "../../adapters/types"; import { CHAIN } from "../../helpers/chains"; const URL = "https://defilama-stats.vooi.workers.dev/"; @@ -11,12 +11,12 @@ interface IAPIResponse { dailyVolume: string; totalVolume: string; } -const fetch = async (options: any): Promise => { - let timestamp = options.toTimestamp +const fetch = async (timestamp: number): Promise => { const { dailyVolume, totalVolume }: IAPIResponse = ( (await fetchURL(`${URL}${endpoint}?ts=${timestamp}`)).data ); return { + timestamp, dailyVolume, totalVolume, }; @@ -29,5 +29,5 @@ export default { start: startTimestamp }, }, - version: 2 + // version: 2 // data accepts only one input to timestamp }