From 4d96fcd5cf57c915afce9b9c9180fd3121fb7d6e Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Sun, 31 Mar 2024 15:38:12 +0000 Subject: [PATCH] fix run current --- dexs/apollox/index.ts | 4 ++++ fees/apollox/index.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/dexs/apollox/index.ts b/dexs/apollox/index.ts index 85538dde59..e6a57cb77d 100644 --- a/dexs/apollox/index.ts +++ b/dexs/apollox/index.ts @@ -59,6 +59,7 @@ const fetchV1Volume = async () => { const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { + runAtCurrTime: true, fetch: async (timestamp) => { const [v1, v2] = await Promise.all([ fetchV2Volume(CHAIN.BSC), @@ -72,6 +73,7 @@ const adapter: SimpleAdapter = { start: 1682035200, }, [CHAIN.ARBITRUM]: { + runAtCurrTime: true, fetch: async (timestamp) => { const dailyVolume = await fetchV2Volume(CHAIN.ARBITRUM); return { @@ -82,6 +84,7 @@ const adapter: SimpleAdapter = { start: 1682035200, }, [CHAIN.OP_BNB]: { + runAtCurrTime: true, fetch: async (timestamp) => { const dailyVolume = await fetchV2Volume('opbnb'); return { @@ -92,6 +95,7 @@ const adapter: SimpleAdapter = { start: 1682035200, }, [CHAIN.BASE]: { + runAtCurrTime: true, fetch: async (timestamp) => { const dailyVolume = await fetchV2Volume(CHAIN.BASE); return { diff --git a/fees/apollox/index.ts b/fees/apollox/index.ts index 7135baa1f4..6e078a97d6 100644 --- a/fees/apollox/index.ts +++ b/fees/apollox/index.ts @@ -26,6 +26,7 @@ const request = (urls: ChainEndpoints) => { const adapter: Adapter = { adapter: { [CHAIN.BSC]: { + runAtCurrTime: true, fetch: request(endpoints)(CHAIN.BSC), start: 1689609600, },