From ad169eafcb1eebd50f75aac5805cf27f7a7868f3 Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Thu, 8 Feb 2024 17:32:01 +0000 Subject: [PATCH] fix error type --- dexs/chronos-v2/index.ts | 4 ++-- dexs/thick/index.ts | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dexs/chronos-v2/index.ts b/dexs/chronos-v2/index.ts index 6f47d34093..557ac6c270 100644 --- a/dexs/chronos-v2/index.ts +++ b/dexs/chronos-v2/index.ts @@ -1,4 +1,4 @@ -import { SimpleAdapter } from "../../adapters/types" +import { Fetch, SimpleAdapter } from "../../adapters/types" import { CHAIN } from "../../helpers/chains" import { getDexVolumeExportsV3 } from "../../helpers/dexVolumeLogs"; @@ -7,7 +7,7 @@ const poolFactoryAddress = '0x4Db9D624F67E00dbF8ef7AE0e0e8eE54aF1dee49'; const adapters: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { - fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 114041129, chain: CHAIN.ARBITRUM, }), + fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 114041129, chain: CHAIN.ARBITRUM, }) as Fetch, start: 1690070400, } } diff --git a/dexs/thick/index.ts b/dexs/thick/index.ts index 1388ee5cdb..530849a3e2 100644 --- a/dexs/thick/index.ts +++ b/dexs/thick/index.ts @@ -1,4 +1,4 @@ -import { SimpleAdapter } from "../../adapters/types"; +import { Fetch, SimpleAdapter } from "../../adapters/types"; import { CHAIN } from "../../helpers/chains"; import { getDexVolumeExportsV3 } from "../../helpers/dexVolumeLogs"; @@ -14,21 +14,21 @@ const methodology = { const adapters: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { - fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 70309749, chain: CHAIN.FANTOM, }), + fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 70309749, chain: CHAIN.FANTOM, }) as Fetch, start: 1699300000, meta: { methodology: { ...methodology, } }, }, [CHAIN.ARBITRUM]: { - fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 148243463, chain: CHAIN.ARBITRUM, }), + fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 148243463, chain: CHAIN.ARBITRUM, }) as Fetch, start: 1699300000, meta: { methodology: { ...methodology, } }, }, [CHAIN.BASE]: { - fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 6314325, chain: CHAIN.BASE, }), + fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 6314325, chain: CHAIN.BASE, }) as Fetch, start: 1699300000, meta: { methodology: { ...methodology, } }, } } } -export default adapters; \ No newline at end of file +export default adapters;