Skip to content

Commit

Permalink
fix archerswap stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Feb 9, 2024
1 parent aea8c3e commit 80299df
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dexs/archerswap/index.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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

0 comments on commit 80299df

Please sign in to comment.