From 80299df623a9d54c7d6a65c6e735b9c309450724 Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Fri, 9 Feb 2024 20:10:11 +0000 Subject: [PATCH] fix archerswap stuck --- dexs/archerswap/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dexs/archerswap/index.ts b/dexs/archerswap/index.ts index 0f1cc317d5..ac7fcb75bf 100644 --- a/dexs/archerswap/index.ts +++ b/dexs/archerswap/index.ts @@ -1,6 +1,8 @@ // https://subgraph.archerswap.finance/subgraphs/name/tomdoeverything/archerswap-subgraph import { univ2Adapter } from "../../helpers/getUniSubgraphVolume"; import { CHAIN } from "../../helpers/chains"; +import { DISABLED_ADAPTER_KEY } from "../../adapters/types"; +import disabledAdapter from "../../helpers/disabledAdapter"; const endpoints = { [CHAIN.CORE]: "https://subgraph.archerswap.finance/subgraphs/name/archerswap-subgraph", @@ -9,5 +11,12 @@ const endpoints = { const adapter = univ2Adapter(endpoints, {}); adapter.adapter.core.start = 1678060800; +adapter.adapter.core.fetch = async (timestamp: number) => { + return { + dailyVolume: 0, + timestamp, + } +} +adapter.adapter[DISABLED_ADAPTER_KEY] = disabledAdapter; export default adapter