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", }, +})