From d4d22fb94f2b74a09c1b1349ef7cb970f63d9acc Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Wed, 14 Feb 2024 15:57:23 +0000 Subject: [PATCH] fix e3 --- dexs/e3/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dexs/e3/index.ts b/dexs/e3/index.ts index 17b0c07f7a..113e7b47ea 100644 --- a/dexs/e3/index.ts +++ b/dexs/e3/index.ts @@ -1,4 +1,4 @@ -import { ChainBlocks, SimpleAdapter } from "../../adapters/types"; +import { ChainBlocks, FetchOptions, SimpleAdapter } from "../../adapters/types"; import { CHAIN } from "../../helpers/chains"; const event_swap = 'event Swap(address indexed sender,address indexed to,uint24 id,bytes32 amountsIn,bytes32 amountsOut,uint24 volatilityAccumulator,bytes32 totalFees,bytes32 protocolFees)'; @@ -12,7 +12,7 @@ const ABIs: TABI = { "getLBPairAtIndex": "function getLBPairAtIndex(uint256 index) view returns (address lbPair)" } -const fetch: any = async (timestamp: number, _: ChainBlocks, { getLogs, api, createBalances }) => { +const fetch: any = async (timestamp: number, _: ChainBlocks, { getLogs, api, createBalances }: FetchOptions) => { const dailyVolume = createBalances(); const lpTokens = await api.fetchList({ lengthAbi: ABIs.getNumberOfLBPairs, itemAbi: ABIs.getLBPairAtIndex, target: FACTORY_ADDRESS })