From 28dd9db0b1113b5f4166921eceb3ed04b6823c46 Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Sun, 22 Sep 2024 15:59:40 +0000 Subject: [PATCH] fix breakdown --- dexs/pear-protocol/index.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dexs/pear-protocol/index.ts b/dexs/pear-protocol/index.ts index ad8530e63a..c47449ac30 100644 --- a/dexs/pear-protocol/index.ts +++ b/dexs/pear-protocol/index.ts @@ -1,5 +1,4 @@ -import { IExchangeTotalVolume } from "./../flowx-finance/index"; -import { Adapter, BreakdownAdapter, FetchOptions } from "../../adapters/types"; +import { SimpleAdapter } from "../../adapters/types"; import { CHAIN } from "../../helpers/chains"; import { httpGet } from "../../utils/fetchURL"; @@ -17,14 +16,12 @@ const fetch = async (timestamp: number) => { }; }; -const adapter: BreakdownAdapter = { - breakdown: { - derivatives: { +const adapter: SimpleAdapter = { + adapter: { [CHAIN.ARBITRUM]: { fetch: fetch, start: 1715199684, }, - }, }, };