From e4676b1919529133672f643e42a04b83e6c6ddf3 Mon Sep 17 00:00:00 2001 From: Surya Vamsee Date: Thu, 28 Mar 2024 01:58:34 +0530 Subject: [PATCH] fix: fix the type of the API response --- dexs/logx/index.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dexs/logx/index.ts b/dexs/logx/index.ts index 4e95dae8ab..2045fdcad9 100644 --- a/dexs/logx/index.ts +++ b/dexs/logx/index.ts @@ -17,17 +17,14 @@ const chain_ids: { [chain: string]: string } = { } interface IAPIResponse { + dailyVolume: string; totalVolume: string; - totalUsers: string; - _24HVolume: string; - message: string; } const getFetch = async (timestamp: number, _: ChainBlocks, { createBalances, getLogs, chain, api }: FetchOptions): Promise => { - const { totalVolume, totalUsers, _24HVolume, message }: IAPIResponse = ( + const { dailyVolume, totalVolume }: IAPIResponse = ( await fetchURL(`${URL}?chainId=${chain_ids[chain]}×tamp=${timestamp}`) ); - const dailyVolume = _24HVolume; return { dailyVolume, totalVolume,