Skip to content

Commit

Permalink
fix monocerus
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Sep 3, 2024
1 parent 341a559 commit 7fd31a6
Showing 1 changed file with 5 additions and 45 deletions.
50 changes: 5 additions & 45 deletions dexs/monocerus/index.ts
Original file line number Diff line number Diff line change
@@ -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", },
})

0 comments on commit 7fd31a6

Please sign in to comment.