diff --git a/dexs/fusionx-v2/index.ts b/dexs/fusionx-v2/index.ts new file mode 100644 index 0000000000..689ce08719 --- /dev/null +++ b/dexs/fusionx-v2/index.ts @@ -0,0 +1,15 @@ +import { univ2Adapter } from "../../helpers/getUniSubgraphVolume"; +import { CHAIN } from "../../helpers/chains"; + +const endpoints = { + [CHAIN.MANTLE]: "https://graph.fusionx.finance/subgraphs/name/fusionx/exchange", +}; + +const adapter = univ2Adapter(endpoints, { + factoriesName: "fusionxFactories", + dayData: "fusionxDayData", +}); + +adapter.adapter.mantle.start = async () => 1689206400; + +export default adapter diff --git a/dexs/fusionx-v3/index.ts b/dexs/fusionx-v3/index.ts new file mode 100644 index 0000000000..ac387ceaf2 --- /dev/null +++ b/dexs/fusionx-v3/index.ts @@ -0,0 +1,16 @@ +import { univ2Adapter } from "../../helpers/getUniSubgraphVolume"; +import { CHAIN } from "../../helpers/chains"; + +const endpoints = { + [CHAIN.MANTLE]: "https://graph.fusionx.finance/subgraphs/name/fusionx/exchange-v3", +}; + +const adapter = univ2Adapter(endpoints, { + factoriesName: "factories", + dayData: "fusionXDayData", + dailyVolume: "volumeUSD", +}); + +adapter.adapter.mantle.start = async () => 1689206400; + +export default adapter diff --git a/helpers/chains.ts b/helpers/chains.ts index 501430fe40..5d40a16b76 100644 --- a/helpers/chains.ts +++ b/helpers/chains.ts @@ -109,7 +109,8 @@ export enum CHAIN { EVMOS = "evmos", PULSECHAIN = "pulse", ONUS = "onus", - OASIS = "oasis" + OASIS = "oasis", + MANTLE = "mantle" } // DonĀ“t use