From e117ed3ef9e37f9f08c1c6a4a3608a1a2924a5ff Mon Sep 17 00:00:00 2001 From: Dackie Date: Sat, 31 Aug 2024 16:50:29 +0700 Subject: [PATCH] DackieSwap update volume Linea --- 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 51e8e9048c..5d27c7663b 100644 --- a/dexs/dackieswap-v2/index.ts +++ b/dexs/dackieswap-v2/index.ts @@ -12,6 +12,7 @@ const endpoints: ChainEndpoints = { [CHAIN.BLAST]: "https://api.studio.thegraph.com/query/50473/v2-blast/version/latest", [CHAIN.MODE]: "https://api.studio.thegraph.com/query/50473/v2-mode/version/latest", [CHAIN.XLAYER]: "https://api.studio.thegraph.com/query/50473/v2-xlayer/version/latest", + [CHAIN.LINEA]: "https://api.studio.thegraph.com/query/50473/v2-linea/version/latest", }; // Fetch function to query the subgraphs @@ -57,7 +58,8 @@ const adapter: SimpleAdapter = { : chain === CHAIN.BLAST ? 1709722800 : chain === CHAIN.MODE ? 1712371653 : chain === CHAIN.XLAYER ? 1712369493 - : 0, + : chain === CHAIN.LINEA ? 1725062400 + : 0, customBackfill: customBackfill(chain, graphs), meta: {methodology}, } diff --git a/dexs/dackieswap/index.ts b/dexs/dackieswap/index.ts index 4c41209576..d3195a126c 100644 --- a/dexs/dackieswap/index.ts +++ b/dexs/dackieswap/index.ts @@ -16,6 +16,8 @@ const v3Endpoint = { "https://api.studio.thegraph.com/query/50473/v3-mode/version/latest", [CHAIN.XLAYER]: "https://api.studio.thegraph.com/query/50473/v3-xlayer/version/latest", + [CHAIN.LINEA]: + "https://api.studio.thegraph.com/query/50473/v3-linea/version/latest", }; const VOLUME_USD = "volumeUSD"; @@ -45,6 +47,7 @@ const v3StartTimes = { [CHAIN.BLAST]: 1709722800, [CHAIN.MODE]: 1712371653, [CHAIN.XLAYER]: 1712369493, + [CHAIN.LINEA]: 1725062400, } as IJSON; const adapter: SimpleAdapter = { @@ -73,6 +76,10 @@ const adapter: SimpleAdapter = { fetch: v3Graph(CHAIN.XLAYER), start: async () => v3StartTimes[CHAIN.XLAYER] }, + [CHAIN.LINEA]: { + fetch: v3Graph(CHAIN.LINEA), + start: async () => v3StartTimes[CHAIN.LINEA] + }, }, version: 2 };