From 475948f10e1441c82a5946a42fdd71711a1412f4 Mon Sep 17 00:00:00 2001 From: "andreapn.eth" Date: Sun, 12 May 2024 12:49:10 +0700 Subject: [PATCH] DackieSwap on X Layer volume --- dexs/dackieswap-v2/index.ts | 4 +++- dexs/dackieswap/index.ts | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dexs/dackieswap-v2/index.ts b/dexs/dackieswap-v2/index.ts index 458dd0cbe5..7d8aa9092a 100644 --- a/dexs/dackieswap-v2/index.ts +++ b/dexs/dackieswap-v2/index.ts @@ -11,6 +11,7 @@ const endpoints: ChainEndpoints = { [CHAIN.ARBITRUM]: "https://api.studio.thegraph.com/query/50473/v2-arbitrum/version/latest", [CHAIN.BLAST]: "https://api.studio.thegraph.com/query/50473/v2-blast/version/latest", [CHAIN.MODE]: "https://graph.dackieswap.xyz/mode/subgraphs/name/v2-mode", + [CHAIN.XLAYER]: "https://graph.dackieswap.xyz/xlayer/subgraphs/name/v2-xlayer", }; // Fetch function to query the subgraphs @@ -55,7 +56,8 @@ const adapter: SimpleAdapter = { : chain === CHAIN.ARBITRUM ? 1707885300 : chain === CHAIN.BLAST ? 1709722800 : chain === CHAIN.MODE ? 1712371653 - : 0, + : chain === CHAIN.XLAYER ? 1712369493 + : 0, customBackfill: customBackfill(chain, graphs), meta: {methodology}, } diff --git a/dexs/dackieswap/index.ts b/dexs/dackieswap/index.ts index 715707902e..981e9e22be 100644 --- a/dexs/dackieswap/index.ts +++ b/dexs/dackieswap/index.ts @@ -14,6 +14,8 @@ const v3Endpoint = { "https://api.studio.thegraph.com/query/50473/v3-blast/version/latest", [CHAIN.MODE]: "https://graph.dackieswap.xyz/mode/subgraphs/name/v3-mode", + [CHAIN.XLAYER]: + "https://graph.dackieswap.xyz/xlayer/subgraphs/name/v3-xlayer", }; const VOLUME_USD = "volumeUSD"; @@ -42,6 +44,7 @@ const v3StartTimes = { [CHAIN.ARBITRUM]: 1707885300, [CHAIN.BLAST]: 1709722800, [CHAIN.MODE]: 1712371653, + [CHAIN.XLAYER]: 1712369493, } as IJSON; const adapter: SimpleAdapter = { @@ -66,6 +69,10 @@ const adapter: SimpleAdapter = { fetch: v3Graph(CHAIN.MODE), start: async () => v3StartTimes[CHAIN.MODE] }, + [CHAIN.XLAYER]: { + fetch: v3Graph(CHAIN.XLAYER), + start: async () => v3StartTimes[CHAIN.XLAYER] + }, }, version: 2 };