Skip to content

Commit

Permalink
fix: fix the type of the API response
Browse files Browse the repository at this point in the history
  • Loading branch information
Surya Vamsee authored and Surya Vamsee committed Mar 27, 2024
1 parent a103dd5 commit e4676b1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dexs/logx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<FetchResult> => {
const { totalVolume, totalUsers, _24HVolume, message }: IAPIResponse = (
const { dailyVolume, totalVolume }: IAPIResponse = (
await fetchURL(`${URL}?chainId=${chain_ids[chain]}&timestamp=${timestamp}`)
);
const dailyVolume = _24HVolume;
return {
dailyVolume,
totalVolume,
Expand Down

0 comments on commit e4676b1

Please sign in to comment.