Skip to content

Commit

Permalink
add nuri-v1 and nuri-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
0xShad0w committed May 9, 2024
1 parent 5c1a6a9 commit 0ee014f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dexs/nuri-exchange-v1/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { SimpleAdapter } from "../../adapters/types";
import { CHAIN } from "../../helpers/chains";
import { getDexVolumeExports } from "../../helpers/dexVolumeLogs";

const FACTORY_ADDRESS = '0xAAA16c016BF556fcD620328f0759252E29b1AB57'

const adapter: SimpleAdapter = {
adapter: {
[CHAIN.SCROLL]: {
fetch: getDexVolumeExports({ chain: CHAIN.SCROLL, factory: FACTORY_ADDRESS }),
start: 1714608000,
},
}
};

export default adapter;
14 changes: 14 additions & 0 deletions dexs/nuri-exchange-v2/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { CHAIN } from "../../helpers/chains";
import { univ2Adapter } from "../../helpers/getUniSubgraphVolume";

const adapters = univ2Adapter({
[CHAIN.SCROLL]: "https://api.studio.thegraph.com/query/66247/nuri-cl/version/latest"
}, {
factoriesName: "factories",
dayData: "uniswapDayData",
dailyVolume: "volumeUSD",
totalVolume: "totalVolumeUSD",
});

adapters.adapter.scroll.start = 1714608000;
export default adapters;

0 comments on commit 0ee014f

Please sign in to comment.