From 8c2c761439823623500af6ae3a15c2fa4d351f2a Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Tue, 26 Mar 2024 18:18:25 +0000 Subject: [PATCH 1/3] fix stuck adapter --- dexs/DerpDEX/index.ts | 6 +++--- dexs/hydradex/index.ts | 12 ++++++------ dexs/makiswap/index.ts | 6 +++++- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/dexs/DerpDEX/index.ts b/dexs/DerpDEX/index.ts index 7f47fa594e..b7dfda7c52 100644 --- a/dexs/DerpDEX/index.ts +++ b/dexs/DerpDEX/index.ts @@ -7,13 +7,13 @@ const endpoints = { "https://api.studio.thegraph.com/query/49147/derpdex-v3-amm/v0.0.10", [CHAIN.BASE]: "https://api.thegraph.com/subgraphs/name/geckocoding/derpdex-amm-base", - [CHAIN.OP_BNB]: - "https://opbnb.subgraph.derpdex.com/subgraphs/name/geckocoding/derpdex-opbnb", + // [CHAIN.OP_BNB]: + // "https://opbnb.subgraph.derpdex.com/subgraphs/name/geckocoding/derpdex-opbnb", }; const v3StartTimes = { [CHAIN.ERA]: 1688515200, [CHAIN.BASE]: 1692296100, - [CHAIN.OP_BNB]: 1695275237, + // [CHAIN.OP_BNB]: 1695275237, }; const v3Graphs = getGraphDimensions({ diff --git a/dexs/hydradex/index.ts b/dexs/hydradex/index.ts index b0b3fe33c2..d1595ba26b 100644 --- a/dexs/hydradex/index.ts +++ b/dexs/hydradex/index.ts @@ -123,12 +123,12 @@ const adapter: BreakdownAdapter = { v2: { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.HYDRA]: { - fetch: v2Graph(CHAIN.HYDRA), - start: getStartTimestamp({ - endpoints: v2Endpoints, - chain: CHAIN.HYDRA, - dailyDataField: 'hydraswapDayDatas', - }), + fetch: async (timestamp: number) => { + return { + timestamp + } + }, + start: 0, meta: { methodology, }, diff --git a/dexs/makiswap/index.ts b/dexs/makiswap/index.ts index 203a2042d4..0241ed2593 100644 --- a/dexs/makiswap/index.ts +++ b/dexs/makiswap/index.ts @@ -1,9 +1,13 @@ import { CHAIN } from "../../helpers/chains"; import { univ2Adapter } from "../../helpers/getUniSubgraphVolume"; -export default univ2Adapter({ +const adapter = univ2Adapter({ [CHAIN.HECO]: "https://api2.makiswap.com/subgraphs/name/maki-mainnet/exchange" }, { factoriesName: "pancakeFactories", dayData: "pancakeDayData" }); + +adapter.adapter[CHAIN.HECO].start = 1630000000; +adapter.adapter[CHAIN.HECO].fetch = async (timestamp: number) => { return { timestamp}}; +export default adapter; From 5c0e044ecd1ada9f8ead8c7df32a44c73b767770 Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Tue, 26 Mar 2024 18:23:27 +0000 Subject: [PATCH 2/3] fix sushiswap --- dexs/sushiswap/trident.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dexs/sushiswap/trident.ts b/dexs/sushiswap/trident.ts index e5642af2cc..3ffdf7208d 100644 --- a/dexs/sushiswap/trident.ts +++ b/dexs/sushiswap/trident.ts @@ -9,7 +9,7 @@ const endpointsTrident: Record = { [CHAIN.POLYGON]: 'https://api.thegraph.com/subgraphs/name/sushi-v2/trident-polygon', [CHAIN.OPTIMISM]: 'https://api.thegraph.com/subgraphs/name/sushi-v2/trident-optimism', //[CHAIN.KAVA]: 'https://pvt.graph.kava.io/subgraphs/name/sushi-v2/trident-kava', - [CHAIN.METIS]: 'https://andromeda.thegraph.metis.io/subgraphs/name/sushi-v2/trident-metis', + // [CHAIN.METIS]: 'https://andromeda.thegraph.metis.io/subgraphs/name/sushi-v2/trident-metis', [CHAIN.BITTORRENT]: 'https://subgraphs.sushi.com/subgraphs/name/sushi-v2/trident-bttc', [CHAIN.ARBITRUM]: 'https://api.thegraph.com/subgraphs/name/sushi-v2/trident-arbitrum', [CHAIN.BSC]: 'https://api.thegraph.com/subgraphs/name/sushi-v2/trident-bsc', From d79e1c1e66870184a61e1edd5c1da3eb7af8652e Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Tue, 26 Mar 2024 18:25:54 +0000 Subject: [PATCH 3/3] fix error --- dexs/polkaswap/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dexs/polkaswap/index.ts b/dexs/polkaswap/index.ts index d7e8cb1a80..9bb1a4413a 100644 --- a/dexs/polkaswap/index.ts +++ b/dexs/polkaswap/index.ts @@ -16,7 +16,7 @@ const getDailyVolume = () => { }` } -const graphQLClient = new GraphQLClient("https://api.subquery.network/sq/sora-xor/sora-prod-sub4"); +const graphQLClient = new GraphQLClient("https://api.subquery.network/sq/sora-xor/sora-prod"); const getGQLClient = () => { return graphQLClient }