From 7fd31a690dafa467aec0d31dca276688fa6e9ccf Mon Sep 17 00:00:00 2001 From: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> Date: Tue, 3 Sep 2024 11:39:43 +0200 Subject: [PATCH] fix monocerus --- dexs/monocerus/index.ts | 50 +++++------------------------------------ 1 file changed, 5 insertions(+), 45 deletions(-) diff --git a/dexs/monocerus/index.ts b/dexs/monocerus/index.ts index 3b5b4ec443..aa384432b1 100644 --- a/dexs/monocerus/index.ts +++ b/dexs/monocerus/index.ts @@ -1,46 +1,6 @@ -import { Adapter, DISABLED_ADAPTER_KEY } from "../../adapters/types"; -import { CHAIN } from "../../helpers/chains"; -import disabledAdapter from "../../helpers/disabledAdapter"; -import { getGraphDimensions } from "../../helpers/getUniSubgraph"; +import { uniV3Exports } from "../../helpers/uniswap"; -const endpoints = { - [CHAIN.MANTA]: "https://api.goldsky.com/api/public/project_clpm9wvhralny01szb1oa4pue/subgraphs/monocerus/1.2.0/gn" -}; - -const v3Graphs = getGraphDimensions({ - graphUrls: endpoints, - totalVolume: { - factory: "factories", - field: "totalVolumeUSD", - }, - dailyVolume: { - factory: "uniswapDayData", - field: "volumeUSD", - dateField: "date" - }, - dailyFees: { - factory: "uniswapDayData", - field: "feesUSD", - }, - feesPercent: { - type: "fees", - ProtocolRevenue: 0, - HoldersRevenue: 0, - UserFees: 100, // User fees are 0% of collected fees - SupplySideRevenue: 100, // 100% of fees are going to LPs - Revenue: 0 // Revenue is 0% of collected fees - } -}); - -const adapter: Adapter = { - version: 2, - adapter: { - [DISABLED_ADAPTER_KEY]: disabledAdapter, - [CHAIN.MANTA]: { - fetch: v3Graphs(CHAIN.MANTA), - start: 1703548800 - } - } -}; - -export default adapter; +export default uniV3Exports({ + avax: { factory: "0x8d312c2B300239B84c304B5af5A3D00cBF0803F6", }, + manta: { factory: "0x481F4b658d1447A9559B220640Fb79C2B993032A", }, +})