From 963604b626d41708b86e2d08a79814eb7a8f1462 Mon Sep 17 00:00:00 2001 From: neoiss Date: Thu, 8 Feb 2024 23:24:57 +0800 Subject: [PATCH] add volume for hiveswap v3 --- dexs/hiveswap-v3/index.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 dexs/hiveswap-v3/index.ts diff --git a/dexs/hiveswap-v3/index.ts b/dexs/hiveswap-v3/index.ts new file mode 100644 index 0000000000..f2b4464e30 --- /dev/null +++ b/dexs/hiveswap-v3/index.ts @@ -0,0 +1,18 @@ +import {univ2Adapter} from "../../helpers/getUniSubgraphVolume"; +import {CHAIN} from "../../helpers/chains"; + +const endpoints = { + [CHAIN.MAP]: "https://graph.mapprotocol.io/subgraphs/name/hiveswap/exchange-v3", +}; + +const adapter = univ2Adapter( + endpoints, + { + factoriesName: "factories", + dayData: "pancakeDayData", + dailyVolume: "volumeUSD" + }); + +adapter.adapter.map.start = 1706585489; + +export default adapter