Skip to content

Commit

Permalink
Fix 0x agg
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed May 13, 2024
1 parent a9e9715 commit 472a5ab
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dexs/0x/zrx/index.ts → aggregators/zrx/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { GraphQLClient, gql } from "graphql-request";
import { getUniqStartOfTodayTimestamp } from "../../../helpers/getUniSubgraphVolume";
import { getEnv } from "../../../helpers/env";
import { FetchOptions } from "../../../adapters/types";
import { CHAIN } from "../../../helpers/chains";

import { CHAIN } from "../../helpers/chains";
import { getUniqStartOfTodayTimestamp } from "../../helpers/getUniSubgraphVolume";
import { FetchOptions } from "../../adapters/types";
import { getEnv } from "../../helpers/env";

type TChain = {
[key: string]: string;
}
};
const CHAINS: TChain = {
[CHAIN.ARBITRUM]: "Arbitrum",
[CHAIN.AVAX]: "Avalanche",
Expand Down Expand Up @@ -70,7 +71,7 @@ const fetch = async (options: FetchOptions) => {
}
};

const adapter_aggs: any = {
const adapter: any = {
version: 2,
adapter: {
...Object.values(CHAINS).reduce((acc, chain) => {
Expand All @@ -84,6 +85,5 @@ const adapter_aggs: any = {
}, {}),
},
};
export {
adapter_aggs
}

export default adapter;

0 comments on commit 472a5ab

Please sign in to comment.