Skip to content

Commit

Permalink
fusion v2 and v3x
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Jul 17, 2023
1 parent 2373aa1 commit b7806dc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
15 changes: 15 additions & 0 deletions dexs/fusionx-v2/index.ts
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions dexs/fusionx-v3/index.ts
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion helpers/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export enum CHAIN {
EVMOS = "evmos",
PULSECHAIN = "pulse",
ONUS = "onus",
OASIS = "oasis"
OASIS = "oasis",
MANTLE = "mantle"
}

// Don´t use
Expand Down

0 comments on commit b7806dc

Please sign in to comment.