From a91e6c1bd3686b2f95e311b60d9d6ebc1dcd05d6 Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Tue, 27 Aug 2024 13:43:50 +0000 Subject: [PATCH] fix v4 version --- fees/dydx-v4/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fees/dydx-v4/index.ts b/fees/dydx-v4/index.ts index a20ffdaa16..9034580dcd 100644 --- a/fees/dydx-v4/index.ts +++ b/fees/dydx-v4/index.ts @@ -1,11 +1,11 @@ -import { FetchOptions, SimpleAdapter } from '../../adapters/types' +import { ChainBlocks, FetchOptions, SimpleAdapter } from '../../adapters/types' import { httpGet } from '../../utils/fetchURL' interface IFees { day: string sum_tradingfeecollection: string } -const fetchFees = async (options: FetchOptions) => { +const fetchFees = async (timestamp: number, _t: ChainBlocks ,options: FetchOptions) => { const url = 'https://api.lacertalabs.xyz/data/tradingfeecollection' const dateStr = new Date(options.startOfDay * 1000).toISOString().split('T')[0] const res = await httpGet(url) @@ -14,6 +14,7 @@ const fetchFees = async (options: FetchOptions) => { const dailyFees = item.find((i) => i.day.split('T')[0] === dateStr)?.sum_tradingfeecollection return { dailyFees: dailyFees ? dailyFees : undefined, + timestamp: timestamp, } }