diff --git a/helpers/chains.ts b/helpers/chains.ts index c8623eeede..50117980bf 100644 --- a/helpers/chains.ts +++ b/helpers/chains.ts @@ -214,6 +214,7 @@ export enum CHAIN { BERACHAIN = "berachain", UNICHAIN = "unichain", STORY = 'sty', + FORMNETWORK = "formnetwork", } // DonĀ“t use diff --git a/protocols/burrbear.ts b/protocols/burrbear.ts index e06396032a..06d9e3f119 100644 --- a/protocols/burrbear.ts +++ b/protocols/burrbear.ts @@ -34,9 +34,8 @@ const fetchVolume = async (options: FetchOptions) => { const adapters: SimpleAdapter = { version: 2, adapter: { - [CHAIN.ABSTRACT]: { - fetch: fetchVolume, - runAtCurrTime: true + [CHAIN.BERACHAIN]: { + fetch: fetchVolume } } } diff --git a/protocols/fibonacci-dex.ts b/protocols/fibonacci-dex.ts new file mode 100644 index 0000000000..6312ede110 --- /dev/null +++ b/protocols/fibonacci-dex.ts @@ -0,0 +1,37 @@ +import { CHAIN } from "../helpers/chains"; +import { getGraphDimensions } from "../helpers/getUniSubgraph"; +import { Adapter } from "../adapters/types"; + + +const fetch = getGraphDimensions({ + graphUrls: { + [CHAIN.FORMNETWORK]: "https://formapi.0xgraph.xyz/api/public/f96b70ac-d704-4e09-b300-ff0fb4992df2/subgraphs/analytics/v0.0.1/gn", + }, + totalVolume: { + factory: "factories", + field: "totalVolumeUSD", + }, + dailyVolume: { + factory: "algebraDayData", + field: "volumeUSD", + }, + totalFees: { + factory: "factories", + field: "totalFeesUSD", + }, + dailyFees: { + factory: "algebraDayData", + field: "feesUSD", + }, + }); + + const adapters: Adapter = { + adapter: { + [CHAIN.FORMNETWORK]: { + fetch: fetch(CHAIN.FORMNETWORK), + start: '2024-10-29', + }, + }, + }; + + export default adapters; \ No newline at end of file