diff --git a/aggregator-derivatives/logx-aggregator/index.ts b/aggregator-derivatives/logx-aggregator/index.ts index b5025a1d45..c498f199d7 100644 --- a/aggregator-derivatives/logx-aggregator/index.ts +++ b/aggregator-derivatives/logx-aggregator/index.ts @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch, - start: async () => startTimestamp, + start: startTimestamp, }, }, }; diff --git a/aggregators/1inch-agg/index.ts b/aggregators/1inch-agg/index.ts index cc559261b1..c38e0718e5 100644 --- a/aggregators/1inch-agg/index.ts +++ b/aggregators/1inch-agg/index.ts @@ -48,7 +48,7 @@ const adapter: any = { ...acc, [(chainsMap as any)[chain] || chain]: { fetch: fetch(chain), - start: async () => 1701734400, + start: 1701734400, }, }; }, {}), diff --git a/aggregators/aftermath-aggregator/index.ts b/aggregators/aftermath-aggregator/index.ts index fa3b9fa434..b4aed5a06e 100644 --- a/aggregators/aftermath-aggregator/index.ts +++ b/aggregators/aftermath-aggregator/index.ts @@ -19,7 +19,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.SUI]: { fetch, - start: async () => 1689811200 + start: 1689811200 }, }, }; diff --git a/aggregators/aggre/index.ts b/aggregators/aggre/index.ts index 102079b491..112c417325 100644 --- a/aggregators/aggre/index.ts +++ b/aggregators/aggre/index.ts @@ -61,7 +61,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: fetch(chain), - start: async () => 1698660910, + start: 1698660910, } } }, {}) diff --git a/aggregators/arcane-dex/index.ts b/aggregators/arcane-dex/index.ts index a5299d608e..46c61f4cce 100644 --- a/aggregators/arcane-dex/index.ts +++ b/aggregators/arcane-dex/index.ts @@ -52,7 +52,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetchVolume, - start: async () => 1700092800 + start: 1700092800 , } } diff --git a/aggregators/avnu/index.ts b/aggregators/avnu/index.ts index bbef4e1e48..fd45fa14da 100644 --- a/aggregators/avnu/index.ts +++ b/aggregators/avnu/index.ts @@ -26,7 +26,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.STARKNET]: { fetch, - start: async () => startTimestamp, + start: startTimestamp, }, }, }; diff --git a/aggregators/conveyor/index.ts b/aggregators/conveyor/index.ts index ca4a2d6b3f..cf9a668133 100644 --- a/aggregators/conveyor/index.ts +++ b/aggregators/conveyor/index.ts @@ -45,7 +45,7 @@ const adapter: any = { ...acc, [(chainsMap as any)[chain] || chain]: { fetch: fetch(chain), - start: async () => 1692897682, + start: 1692897682, }, }; }, {}), diff --git a/aggregators/cowswap/index.ts b/aggregators/cowswap/index.ts index 46ed174afa..ddcf35419f 100644 --- a/aggregators/cowswap/index.ts +++ b/aggregators/cowswap/index.ts @@ -44,7 +44,7 @@ const adapter: any = { ...acc, [(chainsMap as any)[chain] || chain]: { fetch: fetch(), - start: async () => 1639526400, + start: 1639526400, }, }; }, {}), diff --git a/aggregators/deflex/index.ts b/aggregators/deflex/index.ts index 0b034bff2b..579750cc33 100644 --- a/aggregators/deflex/index.ts +++ b/aggregators/deflex/index.ts @@ -23,7 +23,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, } }; diff --git a/aggregators/dexhunter/index.ts b/aggregators/dexhunter/index.ts index 914a511178..983101a567 100644 --- a/aggregators/dexhunter/index.ts +++ b/aggregators/dexhunter/index.ts @@ -40,7 +40,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.CARDANO]: { fetch, - start: async () => startTimestamp, + start: startTimestamp, }, }, }; diff --git a/aggregators/dforce/index.ts b/aggregators/dforce/index.ts index 16afc521f9..0c47a8c0b1 100644 --- a/aggregators/dforce/index.ts +++ b/aggregators/dforce/index.ts @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: fetch(chain), - start: async () => 1679097600, + start: 1679097600, runAtCurrTime: true } } diff --git a/aggregators/jumper-exchange/index.ts b/aggregators/jumper-exchange/index.ts index 626644a160..9d5e14d911 100644 --- a/aggregators/jumper-exchange/index.ts +++ b/aggregators/jumper-exchange/index.ts @@ -59,7 +59,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: fetch(chain), - start: async () => 1691625600, + start: 1691625600, } } }, {}) diff --git a/aggregators/kanalabs/index.ts b/aggregators/kanalabs/index.ts index 2a82c94d66..915601054f 100644 --- a/aggregators/kanalabs/index.ts +++ b/aggregators/kanalabs/index.ts @@ -18,7 +18,7 @@ const adapter: SimpleAdapter = { [CHAIN.ETHEREUM]: { fetch, runAtCurrTime: true, - start: async () => 1695897839, + start: 1695897839, }, }, }; diff --git a/aggregators/kyberswap/index.ts b/aggregators/kyberswap/index.ts index 6b464defae..1a1440ff94 100644 --- a/aggregators/kyberswap/index.ts +++ b/aggregators/kyberswap/index.ts @@ -62,7 +62,7 @@ const adapter: any = { ...acc, [chain]: { fetch: fetch(chain), - start: async () => 1685491200, + start: 1685491200, }, }; }, {}), diff --git a/aggregators/llamaswap/index.ts b/aggregators/llamaswap/index.ts index 82880bd299..f56ebe87b9 100644 --- a/aggregators/llamaswap/index.ts +++ b/aggregators/llamaswap/index.ts @@ -72,7 +72,7 @@ const adapter: SimpleAdapter = { chains.map((chain) => { adapter.adapter[chain] = { fetch: fetch(chain), - start: async () => startTimestamp, + start: startTimestamp, }; }); diff --git a/aggregators/logx/index.ts b/aggregators/logx/index.ts index b5025a1d45..c498f199d7 100644 --- a/aggregators/logx/index.ts +++ b/aggregators/logx/index.ts @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch, - start: async () => startTimestamp, + start: startTimestamp, }, }, }; diff --git a/aggregators/openocean/index.tsx b/aggregators/openocean/index.tsx index bac8fff430..41d3c22fe8 100644 --- a/aggregators/openocean/index.tsx +++ b/aggregators/openocean/index.tsx @@ -57,7 +57,7 @@ const adapter: any = { ...acc, [chain]: { fetch: fetch(chain), - start: async () => new Date(2023, 6, 1).getTime() / 1000, + start: new Date(2023, 6, 1).getTime() / 1000, }, }; }, {}), diff --git a/aggregators/plexus/index.ts b/aggregators/plexus/index.ts index f88fa16d58..e6811edbf6 100644 --- a/aggregators/plexus/index.ts +++ b/aggregators/plexus/index.ts @@ -43,7 +43,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: fetch(ChainId[chain]), - start: async () => 1675209600, + start: 1675209600, }, }; }, {}), diff --git a/aggregators/swapgpt/index.ts b/aggregators/swapgpt/index.ts index 9ff88a0c0b..1048e2f9e7 100644 --- a/aggregators/swapgpt/index.ts +++ b/aggregators/swapgpt/index.ts @@ -31,14 +31,11 @@ const fetch = async (timestamp: number) => { }; }; -const getStartTimestamp = async () => { - return (new Date('2023-11-28T00:00:00.000Z').getTime() / 1000); -} const adapter: SimpleAdapter = { adapter: { [CHAIN.APTOS]: { fetch: fetch, - start: getStartTimestamp, + start: (new Date('2023-11-28T00:00:00.000Z').getTime() / 1000), } }, }; diff --git a/aggregators/unidex/index.ts b/aggregators/unidex/index.ts index 2d0b5cfd98..f7946141cd 100644 --- a/aggregators/unidex/index.ts +++ b/aggregators/unidex/index.ts @@ -52,7 +52,7 @@ const adapter: any = { ...acc, [(chainsMap as any)[chain] || chain]: { fetch: fetch(chain), - start: async () => 1704348000, + start: 1704348000, }, }; }, {}), diff --git a/aggregators/yield-yak/index.ts b/aggregators/yield-yak/index.ts index 3a22e9fcf0..72383e5f04 100644 --- a/aggregators/yield-yak/index.ts +++ b/aggregators/yield-yak/index.ts @@ -55,7 +55,7 @@ const adapter: any = { ...acc, [chain]: { fetch: fetch(chain), - start: async () => 1685491200, + start: 1685491200, }, }; }, {}), diff --git a/aggregators/zrx/index.ts b/aggregators/zrx/index.ts index 721755c3d7..687a8a4e5d 100644 --- a/aggregators/zrx/index.ts +++ b/aggregators/zrx/index.ts @@ -76,7 +76,7 @@ const adapter: any = { ...acc, [chain]: { fetch: fetch(chain), - start: async () => 1671062400, + start: 1671062400, }, }; }, {}), diff --git a/dexs/0x/index.ts b/dexs/0x/index.ts index 03f3c6ba89..42534b9006 100644 --- a/dexs/0x/index.ts +++ b/dexs/0x/index.ts @@ -64,7 +64,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(chain), - start: async () => 0 + start: 0 } } }, {}) diff --git a/dexs/10kswap/index.ts b/dexs/10kswap/index.ts index 5427323e6e..b77d9e0f35 100644 --- a/dexs/10kswap/index.ts +++ b/dexs/10kswap/index.ts @@ -33,7 +33,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.STARKNET]: { fetch, - start: async () => 1663545600 + start: 1663545600 }, }, }; diff --git a/dexs/4swap/index.ts b/dexs/4swap/index.ts index 13d88e2559..f7712ce71e 100644 --- a/dexs/4swap/index.ts +++ b/dexs/4swap/index.ts @@ -29,7 +29,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, } }; diff --git a/dexs/ArbitrumExchange/index.ts b/dexs/ArbitrumExchange/index.ts index aa139e8908..947ae22ea9 100644 --- a/dexs/ArbitrumExchange/index.ts +++ b/dexs/ArbitrumExchange/index.ts @@ -82,7 +82,7 @@ const adapter: BreakdownAdapter = { v3: Object.keys(v3Endpoints).reduce((acc, chain) => { acc[chain] = { fetch: v3Graphs(chain as Chain), - start: async () => startTimeV3[chain], + start: startTimeV3[chain], meta: { methodology: { ...methodology, diff --git a/dexs/ICDex/index.ts b/dexs/ICDex/index.ts index 7397cfc559..4bf92ed027 100644 --- a/dexs/ICDex/index.ts +++ b/dexs/ICDex/index.ts @@ -23,7 +23,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ICP]: { fetch: fetch, - start: async () => 1705363200, + start: 1705363200, }, } }; diff --git a/dexs/MantisSwap/index.ts b/dexs/MantisSwap/index.ts index 282d5dc81c..4c541b46fd 100644 --- a/dexs/MantisSwap/index.ts +++ b/dexs/MantisSwap/index.ts @@ -26,11 +26,11 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.POLYGON]: { fetch: fetch("137"), - start: async () => 1679309404, + start: 1679309404, }, [CHAIN.POLYGON_ZKEVM]: { fetch: fetch("1101"), - start: async () => 1685355566, + start: 1685355566, }, }, }; diff --git a/dexs/Scale/index.ts b/dexs/Scale/index.ts index e70f135f8d..7a2b448177 100644 --- a/dexs/Scale/index.ts +++ b/dexs/Scale/index.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch: getDexVolumeExports({ chain: CHAIN.BASE, factory: FACTORY_ADDRESS }), - start: async () => 1695458888, + start: 1695458888, }, } }; diff --git a/dexs/SmarDex/index.ts b/dexs/SmarDex/index.ts index 7eb7a09522..5a08b1fc18 100644 --- a/dexs/SmarDex/index.ts +++ b/dexs/SmarDex/index.ts @@ -61,23 +61,23 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: graphs(CHAIN.ETHEREUM), - start: async () => 1678404995, // birthBlock timestamp + start: 1678404995, // birthBlock timestamp }, [CHAIN.BSC]: { fetch: graphs(CHAIN.BSC), - start: async () => 1689581494, + start: 1689581494, }, [CHAIN.POLYGON]: { fetch: graphs(CHAIN.POLYGON), - start: async () => 1689582144, + start: 1689582144, }, [CHAIN.ARBITRUM]: { fetch: graphs(CHAIN.ARBITRUM), - start: async () => 1689582249, + start: 1689582249, }, [CHAIN.BASE]: { fetch: graphs(CHAIN.BASE), - start: async () => 1691491872, + start: 1691491872, }, }, }; diff --git a/dexs/SubstanceX/index.ts b/dexs/SubstanceX/index.ts index af86074b8a..96bbefe2ae 100644 --- a/dexs/SubstanceX/index.ts +++ b/dexs/SubstanceX/index.ts @@ -109,7 +109,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graphs(endpoints)(CHAIN.ARBITRUM), - start: async () => 1700323200, + start: 1700323200, }, }, }; diff --git a/dexs/aark/index.ts b/dexs/aark/index.ts index 345ad7fd2d..44f315d190 100644 --- a/dexs/aark/index.ts +++ b/dexs/aark/index.ts @@ -21,7 +21,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch, - start: async () => 1691845200, + start: 1691845200, }, }, }; diff --git a/dexs/abcdefx/index.ts b/dexs/abcdefx/index.ts index c54503d898..464a0e4ddb 100644 --- a/dexs/abcdefx/index.ts +++ b/dexs/abcdefx/index.ts @@ -11,11 +11,11 @@ const graph = (_chain: Chain) => const adapter: SimpleAdapter = { adapter: { - [CHAIN.KCC]: { fetch: graph(CHAIN.KCC), start: async () => 1670188701 }, - //[CHAIN.MULTIVAC]: { fetch: graph(CHAIN.MULTIVAC), start: async () => 1670226950 }, /// ! typeof CHAIN - [CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), start: async () => 1671580916 }, - //[CHAIN.ECHELON]: { fetch: graph(CHAIN.ECHELON), start: async () => 1671608400 }, /// ded!? - [CHAIN.KAVA]: { fetch: graph(CHAIN.KAVA), start: async () => 1676855943 } + [CHAIN.KCC]: { fetch: graph(CHAIN.KCC), start: 1670188701 }, + //[CHAIN.MULTIVAC]: { fetch: graph(CHAIN.MULTIVAC), start: 1670226950 }, /// ! typeof CHAIN + [CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), start: 1671580916 }, + //[CHAIN.ECHELON]: { fetch: graph(CHAIN.ECHELON), start: 1671608400 }, /// ded!? + [CHAIN.KAVA]: { fetch: graph(CHAIN.KAVA), start: 1676855943 } } }; diff --git a/dexs/acala-swap/index.ts b/dexs/acala-swap/index.ts index 8eb559a19d..14ec8db205 100644 --- a/dexs/acala-swap/index.ts +++ b/dexs/acala-swap/index.ts @@ -45,7 +45,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ACALA]: { fetch: fetch, - start: async () => 1671667200 + start: 1671667200 }, }, }; diff --git a/dexs/aequinox/index.ts b/dexs/aequinox/index.ts index 6e4f02147c..735a90d67f 100644 --- a/dexs/aequinox/index.ts +++ b/dexs/aequinox/index.ts @@ -40,7 +40,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.BSC]: { fetch: fetch, - start: async () => 1673568000 + start: 1673568000 }, }, }; diff --git a/dexs/aerodrome/index.ts b/dexs/aerodrome/index.ts index c4fd107524..28063b7ef1 100644 --- a/dexs/aerodrome/index.ts +++ b/dexs/aerodrome/index.ts @@ -105,7 +105,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch: fetch, - start: async () => 1693180800, + start: 1693180800, } } } diff --git a/dexs/aevo/index.ts b/dexs/aevo/index.ts index de3fbe2950..945f6fe8d3 100644 --- a/dexs/aevo/index.ts +++ b/dexs/aevo/index.ts @@ -16,7 +16,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchAevoVolumeData, - start: async () => 1681430400 + start: 1681430400 }, }, }; diff --git a/dexs/aftermath-fi-amm/index.ts b/dexs/aftermath-fi-amm/index.ts index 450bc79ceb..aef2c781fe 100644 --- a/dexs/aftermath-fi-amm/index.ts +++ b/dexs/aftermath-fi-amm/index.ts @@ -19,7 +19,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.SUI]: { fetch, - start: async () => 1689811200 + start: 1689811200 }, }, }; diff --git a/dexs/agni-fi/index.ts b/dexs/agni-fi/index.ts index d5ae41cedb..9fbfa25c80 100644 --- a/dexs/agni-fi/index.ts +++ b/dexs/agni-fi/index.ts @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.MANTLE]: { fetch: v3Graphs(CHAIN.MANTLE), - start: async () => 1689724800, + start: 1689724800, }, }, }; diff --git a/dexs/airswap/index.ts b/dexs/airswap/index.ts index bf2bbddf9f..2afa12c7dc 100644 --- a/dexs/airswap/index.ts +++ b/dexs/airswap/index.ts @@ -82,23 +82,23 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: graph(CHAIN.ETHEREUM), - start: async () => 1680307200, + start: 1680307200, }, [CHAIN.POLYGON]: { fetch: graph(CHAIN.POLYGON), - start: async () => 1680307200, + start: 1680307200, }, [CHAIN.AVAX]: { fetch: graph(CHAIN.AVAX), - start: async () => 1680307200, + start: 1680307200, }, [CHAIN.BSC]: { fetch: graph(CHAIN.BSC), - start: async () => 1680307200, + start: 1680307200, }, [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), - start: async () => 1689811200, + start: 1689811200, }, } }; diff --git a/dexs/aldrin/index.ts b/dexs/aldrin/index.ts index 5adcd09264..a32e23adc2 100644 --- a/dexs/aldrin/index.ts +++ b/dexs/aldrin/index.ts @@ -51,7 +51,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.SOLANA]: { fetch: fetch, - start: async () => 1643188527, + start: 1643188527, customBackfill: customBackfill(CHAIN.SOLANA as Chain, () => fetch) }, }, diff --git a/dexs/algofi/index.ts b/dexs/algofi/index.ts index 044dcc30fa..7f717b35b3 100644 --- a/dexs/algofi/index.ts +++ b/dexs/algofi/index.ts @@ -27,7 +27,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, } }; diff --git a/dexs/allbridge-classic/index.ts b/dexs/allbridge-classic/index.ts index 305486fe0d..67b65bb2f6 100644 --- a/dexs/allbridge-classic/index.ts +++ b/dexs/allbridge-classic/index.ts @@ -81,7 +81,7 @@ const adapter: SimpleAdapter = { adapter: Object.keys(chainCodeMap).reduce((acc, chain) => { acc[chain] = { fetch: getVolumeFunction(chain), - start: async () => startTimes[chain], + start: startTimes[chain], }; return acc; }, {} as BaseAdapter) diff --git a/dexs/ambient/index.ts b/dexs/ambient/index.ts index e2c93ddaba..559fbd24fd 100644 --- a/dexs/ambient/index.ts +++ b/dexs/ambient/index.ts @@ -59,7 +59,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: graphs(CHAIN.ETHEREUM), - start: async () => 1685232000, + start: 1685232000, }, } } diff --git a/dexs/apex/index.ts b/dexs/apex/index.ts index 2bc0e6d3cb..5c76395c5c 100644 --- a/dexs/apex/index.ts +++ b/dexs/apex/index.ts @@ -77,7 +77,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: getVolume, - start: async () => 1664928000, + start: 1664928000, } }, }; diff --git a/dexs/ascent/index.ts b/dexs/ascent/index.ts index e8f93e36e7..a4cee08c5e 100644 --- a/dexs/ascent/index.ts +++ b/dexs/ascent/index.ts @@ -45,13 +45,13 @@ const adapter: BreakdownAdapter = { v2: { [CHAIN.EON]: { fetch: graphs(CHAIN.EON), - start: async () => 1698796800 + start: 1698796800 }, }, v3: { [CHAIN.EON]: { fetch: graphsV3(CHAIN.EON), - start: async () => 1699401600 + start: 1699401600 }, } } diff --git a/dexs/ashswap/index.ts b/dexs/ashswap/index.ts index 65c9eb6cf7..b5228ccf0e 100644 --- a/dexs/ashswap/index.ts +++ b/dexs/ashswap/index.ts @@ -32,7 +32,7 @@ const adapter: SimpleAdapter = { [CHAIN.ELROND]: { fetch: fetch, runAtCurrTime: true, - start: async () => 1676592000 + start: 1676592000 }, }, }; diff --git a/dexs/astroport-v2/index.ts b/dexs/astroport-v2/index.ts index a85c3190b9..eeffb1edba 100644 --- a/dexs/astroport-v2/index.ts +++ b/dexs/astroport-v2/index.ts @@ -35,25 +35,25 @@ const adapter: SimpleAdapter = { fetch: fetch("phoenix-1"), runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, [CHAIN.INJECTIVE]: { fetch: fetch("injective-1"), runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, neutron: { fetch: fetch("neutron-1"), runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, [CHAIN.SEI]: { fetch: fetch("pacific-1"), runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, } }, }; diff --git a/dexs/astroport/index.ts b/dexs/astroport/index.ts index e0a53574e6..ea15277e98 100644 --- a/dexs/astroport/index.ts +++ b/dexs/astroport/index.ts @@ -15,7 +15,7 @@ const adapter: SimpleAdapter = { }, runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, }, }; diff --git a/dexs/auroraswap/index.ts b/dexs/auroraswap/index.ts index 60347cc322..b7aaf8fe3b 100644 --- a/dexs/auroraswap/index.ts +++ b/dexs/auroraswap/index.ts @@ -22,7 +22,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.AURORA]: { fetch: getDexVolumeExports({ chain: CHAIN.AURORA, pools }), - start: async () => 1678838400, + start: 1678838400, } } } diff --git a/dexs/aux-exchange/index.ts b/dexs/aux-exchange/index.ts index 81143497d1..faec7a588e 100644 --- a/dexs/aux-exchange/index.ts +++ b/dexs/aux-exchange/index.ts @@ -98,7 +98,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.APTOS]: { fetch: fetchVolume, - start: async () => 1699488000, + start: 1699488000, runAtCurrTime: true, }, }, diff --git a/dexs/axial/index.ts b/dexs/axial/index.ts index f472c1d597..ab32d65452 100644 --- a/dexs/axial/index.ts +++ b/dexs/axial/index.ts @@ -27,7 +27,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 1672704000, + start: 1672704000, }, } }; diff --git a/dexs/balancer/index.ts b/dexs/balancer/index.ts index cfcffde2a0..bda454de3e 100644 --- a/dexs/balancer/index.ts +++ b/dexs/balancer/index.ts @@ -80,7 +80,7 @@ const adapter: BreakdownAdapter = { v1: { [CHAIN.ETHEREUM]: { fetch: v1graphs(CHAIN.ETHEREUM), - start: async () => 1582761600, + start: 1582761600, customBackfill: customBackfill(CHAIN.ETHEREUM, v1graphs) }, }, diff --git a/dexs/bancor/index.ts b/dexs/bancor/index.ts index 6d5aa2d9cf..fe091bba99 100644 --- a/dexs/bancor/index.ts +++ b/dexs/bancor/index.ts @@ -63,14 +63,14 @@ const adapter: BreakdownAdapter = { fetch: graphs("ethereum"), runAtCurrTime: false, customBackfill: undefined, - start: async () => 1570665600, + start: 1570665600, } }, "v3": { [CHAIN.ETHEREUM]: { fetch: fetchV3, runAtCurrTime: true, - start: async () => 0, + start: 0, } } } diff --git a/dexs/baryon/index.ts b/dexs/baryon/index.ts index ee29609759..1225a5332e 100644 --- a/dexs/baryon/index.ts +++ b/dexs/baryon/index.ts @@ -22,7 +22,7 @@ export default { [BSC]: { fetch: graphs, runAtCurrTime: true, - start: async () => 0 + start: 0 }, }, } as Adapter; \ No newline at end of file diff --git a/dexs/based-markets/index.ts b/dexs/based-markets/index.ts index 3de5175fcc..f462385898 100644 --- a/dexs/based-markets/index.ts +++ b/dexs/based-markets/index.ts @@ -83,7 +83,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch: fetchVolume, - start: async () => 1704009000 + start: 1704009000 } } } diff --git a/dexs/baseswap/index.ts b/dexs/baseswap/index.ts index d1f71221c0..0d7d2c560e 100644 --- a/dexs/baseswap/index.ts +++ b/dexs/baseswap/index.ts @@ -124,7 +124,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: v2Graph(chain as Chain), - start: async () => 1690495200, + start: 1690495200, customBackfill: customBackfill(chain, v2Graph), meta: { methodology: v2Methodology }, } @@ -135,7 +135,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: derivativesGraph(chain as Chain), - start: async () => 1693353600, + start: 1693353600, customBackfill: customBackfill(chain, derivativesGraph), meta: { methodology: derivativesMethodology }, } diff --git a/dexs/beamex/index.ts b/dexs/beamex/index.ts index 11b643605b..0844c75608 100644 --- a/dexs/beamex/index.ts +++ b/dexs/beamex/index.ts @@ -101,7 +101,7 @@ const adapter: BreakdownAdapter = { "beamex-swap": { [CHAIN.MOONBEAN]: { fetch: getFetch(historicalDataSwap)(CHAIN.MOONBEAN), - start: async () => 1687421388, + start: 1687421388, meta: { methodology: { ...methodologyBeamex, @@ -112,7 +112,7 @@ const adapter: BreakdownAdapter = { "beamex-perps": { [CHAIN.MOONBEAN]: { fetch: getFetch(historicalDataDerivatives)(CHAIN.MOONBEAN), - start: async () => 1687421388, + start: 1687421388, meta: { methodology: { ...methodologyBeamex, diff --git a/dexs/beamswap-v3/index.ts b/dexs/beamswap-v3/index.ts index a88f6dcb81..428b809bfd 100644 --- a/dexs/beamswap-v3/index.ts +++ b/dexs/beamswap-v3/index.ts @@ -44,7 +44,7 @@ const adapter: BreakdownAdapter = { v3: { [CHAIN.MOONBEAN]: { fetch: v3Graphs(CHAIN.MOONBEAN), - start: async () => 1684397388, + start: 1684397388, customBackfill: customBackfill(CHAIN.MOONBEAN, v3Graphs), meta: { methodology: { diff --git a/dexs/beamswap/index.ts b/dexs/beamswap/index.ts index 68e3955d19..cab000b1d5 100644 --- a/dexs/beamswap/index.ts +++ b/dexs/beamswap/index.ts @@ -98,7 +98,7 @@ const adapter: BreakdownAdapter = { "stable-amm": { [CHAIN.MOONBEAN]: { fetch: v1graphs(CHAIN.MOONBEAN), - start: async () => 1656914570, + start: 1656914570, customBackfill: customBackfill(CHAIN.MOONBEAN, v1graphs), meta: { methodology: { diff --git a/dexs/beethoven-x/index.ts b/dexs/beethoven-x/index.ts index 6eae4347f3..7368b07523 100644 --- a/dexs/beethoven-x/index.ts +++ b/dexs/beethoven-x/index.ts @@ -57,7 +57,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: v2Graphs(chain), - start: async () => 1633392000, + start: 1633392000, } } }, {}) diff --git a/dexs/bisq/index.ts b/dexs/bisq/index.ts index 057e6ca8b3..1df374ae1c 100644 --- a/dexs/bisq/index.ts +++ b/dexs/bisq/index.ts @@ -35,7 +35,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BITCOIN]: { fetch, - start: async () => 1525651200, + start: 1525651200, }, }, }; diff --git a/dexs/bitkeep/index.ts b/dexs/bitkeep/index.ts index b005c593a1..cba2b83476 100644 --- a/dexs/bitkeep/index.ts +++ b/dexs/bitkeep/index.ts @@ -37,31 +37,31 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: graph(CHAIN.ETHEREUM), - start: async () => 1667232000, + start: 1667232000, }, [CHAIN.POLYGON]: { fetch: graph(CHAIN.POLYGON), - start: async () => 1667232000, + start: 1667232000, }, [CHAIN.BSC]: { fetch: graph(CHAIN.BSC), - start: async () => 1667232000, + start: 1667232000, }, [CHAIN.HECO]: { fetch: graph(CHAIN.HECO), - start: async () => 1667232000, + start: 1667232000, }, [CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), - start: async () => 1667232000, + start: 1667232000, }, [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), - start: async () => 1667232000, + start: 1667232000, }, [CHAIN.OPTIMISM]: { fetch: graph(CHAIN.OPTIMISM), - start: async () => 1667232000, + start: 1667232000, }, } }; diff --git a/dexs/blex/index.ts b/dexs/blex/index.ts index 42f908a659..4ff51e9cb4 100644 --- a/dexs/blex/index.ts +++ b/dexs/blex/index.ts @@ -58,11 +58,8 @@ interface IGraphResponse { } } - const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.ARBITRUM]: 1691211277, - } - return startTimestamps[chain] + const startTimestamps: { [chain: string]: number } = { + [CHAIN.ARBITRUM]: 1691211277, } const adapter: BreakdownAdapter = { @@ -72,7 +69,7 @@ interface IGraphResponse { ...acc, [chain]: { fetch: getFetch(allData)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}), @@ -81,7 +78,7 @@ interface IGraphResponse { ...acc, [chain]: { fetch: getFetch(derivativesData)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}) diff --git a/dexs/bluefin/index.ts b/dexs/bluefin/index.ts index b7598e802b..757ed449f5 100644 --- a/dexs/bluefin/index.ts +++ b/dexs/bluefin/index.ts @@ -46,7 +46,7 @@ const adapter: BreakdownAdapter = { derivatives: { [CHAIN.SUI]: { fetch: fetchSUI, - start: async () => startTime, + start: startTime, runAtCurrTime: true }, }, diff --git a/dexs/bmx/index.ts b/dexs/bmx/index.ts index 41fd6e9f14..1b3746e486 100644 --- a/dexs/bmx/index.ts +++ b/dexs/bmx/index.ts @@ -78,25 +78,18 @@ const getFetch = }; }; -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.BASE]: 1694304000, - }; - return startTimestamps[chain]; -}; - const adapter: BreakdownAdapter = { breakdown: { swap: { [CHAIN.BASE]: { fetch: getFetch(historicalDataSwap)(CHAIN.BASE), - start: async () => getStartTimestamp(CHAIN.BASE), + start: 1694304000, }, }, derivatives: { [CHAIN.BASE]: { fetch: getFetch(historicalDataDerivatives)(CHAIN.BASE), - start: async () => getStartTimestamp(CHAIN.BASE), + start: 1694304000, }, }, }, diff --git a/dexs/brine/index.ts b/dexs/brine/index.ts index e3ec96d87c..a9edfd1e59 100644 --- a/dexs/brine/index.ts +++ b/dexs/brine/index.ts @@ -17,7 +17,7 @@ const adapter: SimpleAdapter = { [CHAIN.ETHEREUM]: { fetch, runAtCurrTime: false, - start: async () => 1680739200, + start: 1680739200, }, }, }; diff --git a/dexs/butterxyz/index.ts b/dexs/butterxyz/index.ts index ccbec37a47..a11ff6c622 100644 --- a/dexs/butterxyz/index.ts +++ b/dexs/butterxyz/index.ts @@ -33,7 +33,7 @@ export default { adapter: { [CHAIN.MANTLE]: { fetch: dimensions(CHAIN.MANTLE), - start: async () => 1702339200, + start: 1702339200, } } } as SimpleAdapter; diff --git a/dexs/canto-dex/index.ts b/dexs/canto-dex/index.ts index 4223c86941..68e8d84712 100644 --- a/dexs/canto-dex/index.ts +++ b/dexs/canto-dex/index.ts @@ -15,7 +15,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.CANTO]: { fetch: getDexVolumeExports({ chain: CHAIN.CANTO, pools: lpAddress }), - start: async () => 1668988800, + start: 1668988800, }, } }; diff --git a/dexs/caviarnine-lsu-pool/index.ts b/dexs/caviarnine-lsu-pool/index.ts index c87c78043f..fe7d6b81f3 100644 --- a/dexs/caviarnine-lsu-pool/index.ts +++ b/dexs/caviarnine-lsu-pool/index.ts @@ -32,7 +32,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.RADIXDLT]: { fetch: fetchFees, - start: async () => 1699142400, + start: 1699142400, // runAtCurrTime: true } } diff --git a/dexs/caviarnine/index.ts b/dexs/caviarnine/index.ts index 3130af3b90..8d78c6ccdf 100644 --- a/dexs/caviarnine/index.ts +++ b/dexs/caviarnine/index.ts @@ -32,7 +32,7 @@ const adapters: BreakdownAdapter = { orderbook: { [CHAIN.RADIXDLT]: { fetch: fetchSpot, - start: async () => 1698710400, + start: 1698710400, // runAtCurrTime: true } }, @@ -48,7 +48,7 @@ const adapters: BreakdownAdapter = { timestamp } }, - start: async () => 1698710400, + start: 1698710400, // runAtCurrTime: true } } diff --git a/dexs/cetus/index.ts b/dexs/cetus/index.ts index 57db9f1b29..4a2347bded 100644 --- a/dexs/cetus/index.ts +++ b/dexs/cetus/index.ts @@ -43,11 +43,11 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.APTOS]: { fetch: fetch(CHAIN.APTOS), - start: async () => 1666224000, + start: 1666224000, }, [CHAIN.SUI]: { fetch: fetch(CHAIN.SUI), - start: async () => 1682985600, + start: 1682985600, } }, }; diff --git a/dexs/chainge-finance/index.ts b/dexs/chainge-finance/index.ts index a88a47e23e..bc7efa5650 100644 --- a/dexs/chainge-finance/index.ts +++ b/dexs/chainge-finance/index.ts @@ -24,7 +24,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, } }; diff --git a/dexs/cherryswap/index.ts b/dexs/cherryswap/index.ts index 2be4799589..1908294c87 100644 --- a/dexs/cherryswap/index.ts +++ b/dexs/cherryswap/index.ts @@ -59,7 +59,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.OKEXCHAIN]: { fetch: graphs(CHAIN.OKEXCHAIN), - start: async () => 1627385129, + start: 1627385129, }, }, }; diff --git a/dexs/chronos-v2/index.ts b/dexs/chronos-v2/index.ts index 2b81cd1adc..6f47d34093 100644 --- a/dexs/chronos-v2/index.ts +++ b/dexs/chronos-v2/index.ts @@ -8,7 +8,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 114041129, chain: CHAIN.ARBITRUM, }), - start: async () => 1690070400, + start: 1690070400, } } } diff --git a/dexs/chronos/index.ts b/dexs/chronos/index.ts index 4208325aed..b7acbc6e61 100644 --- a/dexs/chronos/index.ts +++ b/dexs/chronos/index.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getDexVolumeExports({ chain: CHAIN.ARBITRUM, factory: FACTORY_ADDRESS }), - start: async () => 1679702400, + start: 1679702400, }, } }; diff --git a/dexs/claimswap/index.ts b/dexs/claimswap/index.ts index 3eb055c01f..c002b8a38d 100644 --- a/dexs/claimswap/index.ts +++ b/dexs/claimswap/index.ts @@ -54,7 +54,7 @@ const adapter: SimpleAdapter = { [CHAIN.KLAYTN]: { fetch, customBackfill: customBackfill(CHAIN.KLAYTN as Chain, (_chian: string) => fetch), - start: async () => START_TIME, + start: START_TIME, }, } }; diff --git a/dexs/clipper/index.ts b/dexs/clipper/index.ts index f484eef2ee..546b4d3ec6 100644 --- a/dexs/clipper/index.ts +++ b/dexs/clipper/index.ts @@ -31,7 +31,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: graphs(chain as Chain), - start: async () => 1657437036, + start: 1657437036, customBackfill: customBackfill(chain, graphs), } } diff --git a/dexs/clober/index.ts b/dexs/clober/index.ts index 8ad856d2ee..ba6a193b73 100644 --- a/dexs/clober/index.ts +++ b/dexs/clober/index.ts @@ -35,22 +35,22 @@ const adapter: SimpleAdapter = { [CHAIN.ETHEREUM]: { fetch: fetch('1'), runAtCurrTime: true, - start: async () => 1683331200, + start: 1683331200, }, [CHAIN.POLYGON]: { fetch: fetch('137'), runAtCurrTime: true, - start: async () => 1683331200, + start: 1683331200, }, [CHAIN.ARBITRUM]: { fetch: fetch('42161'), runAtCurrTime: true, - start: async () => 1683331200, + start: 1683331200, }, [CHAIN.POLYGON_ZKEVM]: { fetch: fetch('1101'), runAtCurrTime: true, - start: async () => 1683331200, + start: 1683331200, }, } }; diff --git a/dexs/concordex-io/index.ts b/dexs/concordex-io/index.ts index 55bdfcb49a..0c2b3b5cb1 100644 --- a/dexs/concordex-io/index.ts +++ b/dexs/concordex-io/index.ts @@ -30,7 +30,7 @@ const rpc = (url: string, method: string, params: any) => const adapter: SimpleAdapter = { adapter: { concordium: { - start: async () => 1688198518, + start: 1688198518, fetch: async (ts) => { const data = await rpc(POOLS_SERVICE_URL, 'volumes_statistic', { timestamp: ts, diff --git a/dexs/contango/index.ts b/dexs/contango/index.ts index cff6f363fb..1dd00d4b8e 100644 --- a/dexs/contango/index.ts +++ b/dexs/contango/index.ts @@ -110,27 +110,27 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetchVolume(CHAIN.ARBITRUM), - start: async () => 1696291200, + start: 1696291200, }, [CHAIN.OPTIMISM]: { fetch: fetchVolume(CHAIN.OPTIMISM), - start: async () => 1696204800, + start: 1696204800, }, [CHAIN.ETHEREUM]: { fetch: fetchVolume(CHAIN.ETHEREUM), - start: async () => 1696291200, + start: 1696291200, }, [CHAIN.POLYGON]: { fetch: fetchVolume(CHAIN.POLYGON), - start: async () => 1697155200, + start: 1697155200, }, [CHAIN.BASE]: { fetch: fetchVolume(CHAIN.BASE), - start: async () => 1696809600, + start: 1696809600, }, [CHAIN.XDAI]: { fetch: fetchVolume(CHAIN.XDAI), - start: async () => 1696550400, + start: 1696550400, }, } }; diff --git a/dexs/covo-v2/index.ts b/dexs/covo-v2/index.ts index f713124ac0..1220462f9a 100644 --- a/dexs/covo-v2/index.ts +++ b/dexs/covo-v2/index.ts @@ -63,11 +63,8 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.POLYGON]: 1678855134, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.POLYGON]: 1678855134, } const adapter: BreakdownAdapter = { @@ -78,7 +75,7 @@ const adapter: BreakdownAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [chain]: { fetch: getFetch(historicalDataSwap)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}), @@ -88,7 +85,7 @@ const adapter: BreakdownAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}) diff --git a/dexs/crescent-swap/index.ts b/dexs/crescent-swap/index.ts index b8e99b335d..5bc0e73a8f 100644 --- a/dexs/crescent-swap/index.ts +++ b/dexs/crescent-swap/index.ts @@ -22,7 +22,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graphs(CHAIN.ARBITRUM), - start: async () => 1685491200 + start: 1685491200 }, }, }; diff --git a/dexs/curve/index.ts b/dexs/curve/index.ts index 4d02bfbb19..515257e59c 100644 --- a/dexs/curve/index.ts +++ b/dexs/curve/index.ts @@ -36,7 +36,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: fetch(chain), - start: async () => 0, + start: 0, runAtCurrTime: true } } diff --git a/dexs/dackieswap-v2/index.ts b/dexs/dackieswap-v2/index.ts index 90d4a29688..1d8ab480a7 100644 --- a/dexs/dackieswap-v2/index.ts +++ b/dexs/dackieswap-v2/index.ts @@ -45,7 +45,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: graphs(chain as Chain), - start: async () => 1694217600, + start: 1694217600, customBackfill: customBackfill(chain, graphs), meta: { methodology }, } diff --git a/dexs/danogo/index.ts b/dexs/danogo/index.ts index 95f829bff2..b5fdbfbe55 100644 --- a/dexs/danogo/index.ts +++ b/dexs/danogo/index.ts @@ -50,7 +50,7 @@ const adapter: SimpleAdapter = { adapter: { cardano: { fetch: fetchData, - start: async () => DANOGO_START_TIMESTAMP, + start: DANOGO_START_TIMESTAMP, runAtCurrTime: false, } } diff --git a/dexs/darkness/index.ts b/dexs/darkness/index.ts index 401b55359f..b80405360f 100644 --- a/dexs/darkness/index.ts +++ b/dexs/darkness/index.ts @@ -29,7 +29,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 1672790400, + start: 1672790400, }, } }; diff --git a/dexs/deepbook-sui/index.ts b/dexs/deepbook-sui/index.ts index 9622b908c2..afa46415c9 100644 --- a/dexs/deepbook-sui/index.ts +++ b/dexs/deepbook-sui/index.ts @@ -35,7 +35,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.SUI]: { fetch, - start: async () => 1687824000, + start: 1687824000, }, }, }; diff --git a/dexs/defibox/index.ts b/dexs/defibox/index.ts index 54d8297a04..3fa5f85085 100644 --- a/dexs/defibox/index.ts +++ b/dexs/defibox/index.ts @@ -36,17 +36,17 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.EOS]: { fetch: graph(CHAIN.EOS), - start: async () => 1674345600, + start: 1674345600, runAtCurrTime: true, }, [CHAIN.WAX]: { fetch: graph(CHAIN.WAX), - start: async () => 1674345600, + start: 1674345600, runAtCurrTime: true, }, // [CHAIN.BSC]: { // fetch: graph(CHAIN.BSC), - // start: async () => 1674345600, + // start: 1674345600, // runAtCurrTime: true, // }, }, diff --git a/dexs/defichain-dex/index.ts b/dexs/defichain-dex/index.ts index d2e32fe66b..3be3b81d80 100644 --- a/dexs/defichain-dex/index.ts +++ b/dexs/defichain-dex/index.ts @@ -30,7 +30,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.DEFICHAIN]: { fetch, - start: async () => 0, + start: 0, runAtCurrTime: true }, }, diff --git a/dexs/defiplaza/index.ts b/dexs/defiplaza/index.ts index 1a7dfaff66..fe8e7af150 100644 --- a/dexs/defiplaza/index.ts +++ b/dexs/defiplaza/index.ts @@ -56,7 +56,7 @@ const adapter: SimpleAdapter = { SupplySideRevenue: "LPs revenue is a small percentage of each swap, which is updated manually on an irregular basis to optimize aggregator volume.", } }, - start: async () => 1633237008 + start: 1633237008 }, [CHAIN.RADIXDLT]: { fetch: async (timestamp: number): Promise => { @@ -85,7 +85,7 @@ const adapter: SimpleAdapter = { SupplySideRevenue: "LPs revenue is 0.5% of each swap, double if hopping between pairs is needed.", } }, - start: async () => 1700784000 + start: 1700784000 } }, }; diff --git a/dexs/demex/index.ts b/dexs/demex/index.ts index 133563726e..027fcaf183 100644 --- a/dexs/demex/index.ts +++ b/dexs/demex/index.ts @@ -30,7 +30,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.CARBON]: { fetch, - start: async () => START_TIME, + start: START_TIME, }, }, }; diff --git a/dexs/derivio/index.ts b/dexs/derivio/index.ts index 788a417173..5ab320cb3e 100644 --- a/dexs/derivio/index.ts +++ b/dexs/derivio/index.ts @@ -83,11 +83,8 @@ const getFetch = (query: string) => (chain: string): Fetch => async (timestamp: } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.ERA]: 1698710400 - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.ERA]: 1698710400 } const adapter: BreakdownAdapter = { @@ -97,7 +94,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataSwap)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}), @@ -106,7 +103,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}) diff --git a/dexs/dexter/index.ts b/dexs/dexter/index.ts index 264f8f538b..dcaa44fdcd 100644 --- a/dexs/dexter/index.ts +++ b/dexs/dexter/index.ts @@ -21,7 +21,7 @@ const adapter: SimpleAdapter = { persistence: { fetch, runAtCurrTime: false, - start: async () => 1679875200, + start: 1679875200, }, }, }; diff --git a/dexs/doveswap/index.ts b/dexs/doveswap/index.ts index 19fed02165..18be32c56f 100644 --- a/dexs/doveswap/index.ts +++ b/dexs/doveswap/index.ts @@ -59,7 +59,7 @@ const adapter: BreakdownAdapter = { v3: Object.keys(v3Endpoints).reduce((acc, chain) => { acc[chain] = { fetch: v3Graphs(chain as Chain), - start: async () => startTimeV3[chain], + start: startTimeV3[chain], meta: { methodology: { ...methodology, diff --git a/dexs/dpex/index.ts b/dexs/dpex/index.ts index 00108c72d6..89cd0f967a 100644 --- a/dexs/dpex/index.ts +++ b/dexs/dpex/index.ts @@ -51,19 +51,15 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.POLYGON]: 1667520000, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.POLYGON]: 1667520000, } - const adapter: SimpleAdapter = { adapter: { [CHAIN.POLYGON]: { fetch: getFetch(historicalDataSwap)(CHAIN.POLYGON), - start: async () => getStartTimestamp(CHAIN.POLYGON), + start: startTimestamps[CHAIN.POLYGON], }, }, }; diff --git a/dexs/drift-protocol/index.ts b/dexs/drift-protocol/index.ts index c8edc4d54e..5540cddf80 100644 --- a/dexs/drift-protocol/index.ts +++ b/dexs/drift-protocol/index.ts @@ -31,14 +31,14 @@ const adapter = { [CHAIN.SOLANA]: { fetch: () => fetch("spot"), runAtCurrTime: true, - start: async () => 1690239600, + start: 1690239600, }, }, derivatives: { [CHAIN.SOLANA]: { fetch: () => fetch("perp"), runAtCurrTime: true, - start: async () => 1690239600, + start: 1690239600, }, }, }, diff --git a/dexs/dx25/index.ts b/dexs/dx25/index.ts index 8bea0b7e7d..a63edb39df 100644 --- a/dexs/dx25/index.ts +++ b/dexs/dx25/index.ts @@ -31,7 +31,7 @@ const rpc = (url: string, method: string, params: any) => const adapter: SimpleAdapter = { adapter: { [CHAIN.ELROND]: { - start: async () => 1697414400, + start: 1697414400, fetch: async (ts) => { const data = await rpc(POOLS_SERVICE_URL, 'volumes_statistic', { timestamp: ts, diff --git a/dexs/dydx-v4/index.ts b/dexs/dydx-v4/index.ts index 10859b4e7e..a0aabc00a0 100644 --- a/dexs/dydx-v4/index.ts +++ b/dexs/dydx-v4/index.ts @@ -18,7 +18,7 @@ const adapter: SimpleAdapter = { "dydx": { runAtCurrTime:true, fetch, - start: async () => 1614211200, + start: 1614211200, }, }, }; diff --git a/dexs/dydx/index.ts b/dexs/dydx/index.ts index 41049bffcd..54705e4c50 100644 --- a/dexs/dydx/index.ts +++ b/dexs/dydx/index.ts @@ -40,7 +40,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch, - start: async () => 1614211200, + start: 1614211200, }, }, }; diff --git a/dexs/e3/index.ts b/dexs/e3/index.ts index 1ba7caa3b5..9094d3bffe 100644 --- a/dexs/e3/index.ts +++ b/dexs/e3/index.ts @@ -122,15 +122,15 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), - start: async () => 1681130543, + start: 1681130543, }, [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), - start: async () => 1686459416, + start: 1686459416, }, [CHAIN.BASE]: { fetch: graph(CHAIN.BASE), - start: async () => 1691547000, + start: 1691547000, } } }; diff --git a/dexs/ekubo/index.ts b/dexs/ekubo/index.ts index fce7ceece0..1e22a848d9 100644 --- a/dexs/ekubo/index.ts +++ b/dexs/ekubo/index.ts @@ -23,7 +23,7 @@ const adapter: Adapter = { [CHAIN.STARKNET]: { fetch: fetch, runAtCurrTime: true, - start: async () => 1695081600 + start: 1695081600 }, } } diff --git a/dexs/el-dorado-exchange/index.ts b/dexs/el-dorado-exchange/index.ts index 9efdf61c5c..7293b34417 100644 --- a/dexs/el-dorado-exchange/index.ts +++ b/dexs/el-dorado-exchange/index.ts @@ -59,14 +59,10 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.BSC]: 1670198400, - [CHAIN.ARBITRUM]: 1678118400, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.BSC]: 1670198400, + [CHAIN.ARBITRUM]: 1678118400, } - // // const adapter: SimpleAdapter = { // adapter: { @@ -89,7 +85,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataSwap)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}), @@ -98,7 +94,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}) diff --git a/dexs/elektrik/index.ts b/dexs/elektrik/index.ts index 936f14b5b9..799229d408 100644 --- a/dexs/elektrik/index.ts +++ b/dexs/elektrik/index.ts @@ -22,7 +22,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.LIGHTLINK_PHOENIX]: { fetch: graphs(CHAIN.LIGHTLINK_PHOENIX), - start: async () => 1697155200 + start: 1697155200 }, }, }; diff --git a/dexs/ellipsis/index.ts b/dexs/ellipsis/index.ts index 23c2e51936..a83e6f4782 100644 --- a/dexs/ellipsis/index.ts +++ b/dexs/ellipsis/index.ts @@ -30,7 +30,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: fetch(chain), - start: async () => 0, + start: 0, runAtCurrTime: true } } diff --git a/dexs/emdx/index.ts b/dexs/emdx/index.ts index 310a507a03..af7e1082af 100644 --- a/dexs/emdx/index.ts +++ b/dexs/emdx/index.ts @@ -39,7 +39,7 @@ const adapter: Adapter = { adapter: { [CHAIN.AVAX]: { fetch: fetch, - start: async () => 1653134400 + start: 1653134400 }, } } diff --git a/dexs/equalizer-exchange/index.ts b/dexs/equalizer-exchange/index.ts index b13ec36c91..24d6a0d9de 100644 --- a/dexs/equalizer-exchange/index.ts +++ b/dexs/equalizer-exchange/index.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch: getDexVolumeExports({ chain: CHAIN.FANTOM, factory: FACTORY_ADDRESS }), - start: async () => 1670544000, + start: 1670544000, }, } }; diff --git a/dexs/equation-v2/index.ts b/dexs/equation-v2/index.ts index 1837832667..160ffd9d7e 100644 --- a/dexs/equation-v2/index.ts +++ b/dexs/equation-v2/index.ts @@ -58,7 +58,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getFetch()(CHAIN.ARBITRUM), - start: async () => 1706227200, + start: 1706227200, meta:{ methodology: methodology, }, diff --git a/dexs/equation/index.ts b/dexs/equation/index.ts index 3eb142389e..2a5c7241ce 100644 --- a/dexs/equation/index.ts +++ b/dexs/equation/index.ts @@ -58,7 +58,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getFetch()(CHAIN.ARBITRUM), - start: async () => 1697760000, + start: 1697760000, meta:{ methodology: methodology, }, diff --git a/dexs/equilibre/index.ts b/dexs/equilibre/index.ts index 861bbaf030..52785dcce5 100644 --- a/dexs/equilibre/index.ts +++ b/dexs/equilibre/index.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.KAVA]: { fetch: getDexVolumeExports({ chain: CHAIN.KAVA, factory: FACTORY_ADDRESS }), - start: async () => 1677888000, + start: 1677888000, }, } }; diff --git a/dexs/equity-spot/index.ts b/dexs/equity-spot/index.ts index a54bbcedcd..d8e1cb81a7 100644 --- a/dexs/equity-spot/index.ts +++ b/dexs/equity-spot/index.ts @@ -50,11 +50,8 @@ const getFetch = (chain: string): Fetch => async (timestamp: number) => { } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.FANTOM]: 1689767230, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.FANTOM]: 1689767230, } const adapter: SimpleAdapter = { @@ -63,7 +60,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: getFetch(chain), - start: async () => getStartTimestamp(chain), + start: startTimestamps[chain], } } }, {}) diff --git a/dexs/exinswap/index.ts b/dexs/exinswap/index.ts index 75425ea5fe..ac31da4d29 100644 --- a/dexs/exinswap/index.ts +++ b/dexs/exinswap/index.ts @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.MIXIN]: { fetch, - start: async () => 1600704000, + start: 1600704000, }, } }; diff --git a/dexs/fairyswap/index.ts b/dexs/fairyswap/index.ts index 0baa693829..7a95960946 100644 --- a/dexs/fairyswap/index.ts +++ b/dexs/fairyswap/index.ts @@ -59,7 +59,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.FINDORA]: { fetch: graphs(CHAIN.FINDORA), - start: async () => 1647684000, + start: 1647684000, }, }, }; diff --git a/dexs/fcon-dex/index.ts b/dexs/fcon-dex/index.ts index a8a7b09a57..441ed51d6e 100644 --- a/dexs/fcon-dex/index.ts +++ b/dexs/fcon-dex/index.ts @@ -32,7 +32,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.MANTLE]: { fetch: fetch, - start: async () => 1691280000, + start: 1691280000, }, }, }; diff --git a/dexs/ferro/index.ts b/dexs/ferro/index.ts index 026c93f8bb..672344e266 100644 --- a/dexs/ferro/index.ts +++ b/dexs/ferro/index.ts @@ -24,7 +24,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.CRONOS]: { fetch: graphs(CHAIN.CRONOS), - start: async () => 1661731973, + start: 1661731973, }, }, }; diff --git a/dexs/flamingo-finance/index.ts b/dexs/flamingo-finance/index.ts index afed523d45..108b24701b 100644 --- a/dexs/flamingo-finance/index.ts +++ b/dexs/flamingo-finance/index.ts @@ -17,7 +17,7 @@ const adapter: SimpleAdapter = { adapter: { neo: { fetch, - start: async () => 1639130007, + start: 1639130007, }, }, }; diff --git a/dexs/flowx-finance/index.ts b/dexs/flowx-finance/index.ts index ed2436884b..d894f09d69 100644 --- a/dexs/flowx-finance/index.ts +++ b/dexs/flowx-finance/index.ts @@ -62,7 +62,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.SUI]: { fetch: fetch, - start: async () => 1673568000, + start: 1673568000, runAtCurrTime: true, }, }, diff --git a/dexs/forge/index.ts b/dexs/forge/index.ts index edd6bcffeb..27aab5e22c 100644 --- a/dexs/forge/index.ts +++ b/dexs/forge/index.ts @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.EVMOS]: { fetch: v1Graph(CHAIN.EVMOS), - start: async () => 1680480000, + start: 1680480000, } }, }; diff --git a/dexs/fulcrom-finance/index.ts b/dexs/fulcrom-finance/index.ts index 185cf653e7..f180408a87 100644 --- a/dexs/fulcrom-finance/index.ts +++ b/dexs/fulcrom-finance/index.ts @@ -80,13 +80,10 @@ const getFetch = }; }; -const getStartTimestamp = async (chain: string) => { const startTimestamps: { [chain: string]: number } = { [CHAIN.CRONOS]: 1677470400, [CHAIN.ERA]: 1696496400, }; - return startTimestamps[chain]; -}; const adapter: BreakdownAdapter = { breakdown: { @@ -95,7 +92,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataSwap)(chain), - start: async () => getStartTimestamp(chain), + start: startTimestamps[chain], }, }; }, {}), @@ -104,7 +101,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain), + start: startTimestamps[chain], }, }; }, {}), diff --git a/dexs/fusionx-v2/index.ts b/dexs/fusionx-v2/index.ts index cfa098f5ab..e871b210ef 100644 --- a/dexs/fusionx-v2/index.ts +++ b/dexs/fusionx-v2/index.ts @@ -31,7 +31,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.MANTLE]: { fetch: v2Graphs(CHAIN.MANTLE), - start: async () => 1689206400, + start: 1689206400, }, }, }; diff --git a/dexs/fusionx-v3/index.ts b/dexs/fusionx-v3/index.ts index fedf2a2fab..9cb028c967 100644 --- a/dexs/fusionx-v3/index.ts +++ b/dexs/fusionx-v3/index.ts @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.MANTLE]: { fetch: v3Graphs(CHAIN.MANTLE), - start: async () => 1689206400, + start: 1689206400, }, }, }; diff --git a/dexs/fvm-exchange/index.ts b/dexs/fvm-exchange/index.ts index d18ac6477f..7dd0c3571b 100644 --- a/dexs/fvm-exchange/index.ts +++ b/dexs/fvm-exchange/index.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch: getDexVolumeExports({ chain: CHAIN.FANTOM, factory: FACTORY_ADDRESS }), - start: async () => 1688172646, // when PairFactory was created https://ftmscan.com/address/0x472f3C3c9608fe0aE8d702f3f8A2d12c410C881A + start: 1688172646, // when PairFactory was created https://ftmscan.com/address/0x472f3C3c9608fe0aE8d702f3f8A2d12c410C881A }, }, } diff --git a/dexs/fwx/index.ts b/dexs/fwx/index.ts index 9afb463e00..b2cf30e94b 100644 --- a/dexs/fwx/index.ts +++ b/dexs/fwx/index.ts @@ -104,7 +104,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.AVAX]: { fetch: fetch(CHAIN.AVAX), - start: async () => 1701907200, + start: 1701907200, }, }, }; diff --git a/dexs/fxdx/index.ts b/dexs/fxdx/index.ts index b917d479a9..66af991d6f 100644 --- a/dexs/fxdx/index.ts +++ b/dexs/fxdx/index.ts @@ -53,12 +53,9 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.OPTIMISM]: 1683864388, - [CHAIN.BASE]:1692688600, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.OPTIMISM]: 1683864388, + [CHAIN.BASE]:1692688600, } @@ -66,11 +63,11 @@ const adapter: SimpleAdapter = { adapter: { // [CHAIN.OPTIMISM]: { // fetch: getFetch(historicalDataSwap)(CHAIN.OPTIMISM), - // start: async () => getStartTimestamp(CHAIN.OPTIMISM), + // start: 1683864388, // }, [CHAIN.BASE] :{ fetch: getFetch(historicalDataSwap)(CHAIN.BASE), - start: async () => getStartTimestamp(CHAIN.BASE), + start: 1692688600, } }, }; diff --git a/dexs/gains-network/index.ts b/dexs/gains-network/index.ts index ed4837995c..8cb7aaf24a 100644 --- a/dexs/gains-network/index.ts +++ b/dexs/gains-network/index.ts @@ -114,11 +114,11 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1684972800, + start: 1684972800, }, [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON), - start: async () => 1684972800, + start: 1684972800, }, }, }; diff --git a/dexs/gambit/index.ts b/dexs/gambit/index.ts index 967a84d984..e362d94f4c 100644 --- a/dexs/gambit/index.ts +++ b/dexs/gambit/index.ts @@ -98,11 +98,11 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ERA]: { fetch: fetch(CHAIN.ERA), - start: async () => 1690848000, // 2023/08/01 00:00:00 + start: 1690848000, // 2023/08/01 00:00:00 }, [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1698883200, // 2023/11/02 00:00:00 + start: 1698883200, // 2023/11/02 00:00:00 } } }; diff --git a/dexs/gmx-v2-swap/index.ts b/dexs/gmx-v2-swap/index.ts index 9adfc59757..181150a085 100644 --- a/dexs/gmx-v2-swap/index.ts +++ b/dexs/gmx-v2-swap/index.ts @@ -70,11 +70,11 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1688428800, + start: 1688428800, }, [CHAIN.AVAX]: { fetch: fetch(CHAIN.AVAX), - start: async () => 1688428800, + start: 1688428800, }, }, }; diff --git a/dexs/gmx-v2-trade/index.ts b/dexs/gmx-v2-trade/index.ts index 5fe2d4637e..69bbe635dd 100644 --- a/dexs/gmx-v2-trade/index.ts +++ b/dexs/gmx-v2-trade/index.ts @@ -98,11 +98,11 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1688428800, + start: 1688428800, }, [CHAIN.AVAX]: { fetch: fetch(CHAIN.AVAX), - start: async () => 1688428800, + start: 1688428800, }, }, }; diff --git a/dexs/gmx/index.ts b/dexs/gmx/index.ts index 71ad1f43b1..b6066b6d87 100644 --- a/dexs/gmx/index.ts +++ b/dexs/gmx/index.ts @@ -96,14 +96,11 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.ARBITRUM]: 1630368000, - [CHAIN.AVAX]: 1640131200, - } - return startTimestamps[chain] -} +const startTimestamps: { [chain: string]: number } = { + [CHAIN.ARBITRUM]: 1630368000, + [CHAIN.AVAX]: 1640131200, +} const adapter: BreakdownAdapter = { breakdown: { "swap": Object.keys(endpoints).reduce((acc, chain) => { @@ -111,7 +108,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataSwap)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}), @@ -120,7 +117,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}) diff --git a/dexs/goosefx/index.ts b/dexs/goosefx/index.ts index dbf7fa5294..6723ae3f8e 100644 --- a/dexs/goosefx/index.ts +++ b/dexs/goosefx/index.ts @@ -21,7 +21,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.SOLANA]: { fetch: fetch, - start: async () => 1696982400, + start: 1696982400, customBackfill: customBackfill(CHAIN.SOLANA as CHAIN, () => fetch), runAtCurrTime: false, meta: { diff --git a/dexs/grizzly-trade/index.ts b/dexs/grizzly-trade/index.ts index 500e2dc173..8807cc3a67 100644 --- a/dexs/grizzly-trade/index.ts +++ b/dexs/grizzly-trade/index.ts @@ -61,11 +61,8 @@ const getFetch = (query: string) => (chain: string): Fetch => async (timestamp: } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.BSC]: 1689897600, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.BSC]: 1689897600, } const adapter: BreakdownAdapter = { @@ -76,7 +73,7 @@ const adapter: BreakdownAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [chain]: { fetch: getFetch(historicalDataSwap)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}), @@ -86,7 +83,7 @@ const adapter: BreakdownAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}) diff --git a/dexs/hadouken-amm/index.ts b/dexs/hadouken-amm/index.ts index eaa52d57d5..8a3282276f 100644 --- a/dexs/hadouken-amm/index.ts +++ b/dexs/hadouken-amm/index.ts @@ -27,7 +27,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.GODWOKEN_V1]: { fetch: v1graphs(CHAIN.GODWOKEN_V1 as Chain), - start: async () => 1669248000, + start: 1669248000, customBackfill: customBackfill(CHAIN.GODWOKEN_V1 as Chain, v1graphs) }, }, diff --git a/dexs/heliswap/index.ts b/dexs/heliswap/index.ts index 8590b90dce..92c4fbe0b9 100644 --- a/dexs/heliswap/index.ts +++ b/dexs/heliswap/index.ts @@ -72,7 +72,7 @@ const adapter: SimpleAdapter = { [CHAIN.HEDERA]: { fetch: fetch, runAtCurrTime: true, - start: async () => 1664928000 + start: 1664928000 }, }, }; diff --git a/dexs/helix-perp/index.ts b/dexs/helix-perp/index.ts index e64d10c54e..959bd1bb47 100644 --- a/dexs/helix-perp/index.ts +++ b/dexs/helix-perp/index.ts @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.INJECTIVE]: { fetch: fetch, - start: async () => 1706313600, + start: 1706313600, } } } diff --git a/dexs/helix/index.ts b/dexs/helix/index.ts index 3736bf208b..b04ab83397 100644 --- a/dexs/helix/index.ts +++ b/dexs/helix/index.ts @@ -21,7 +21,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.INJECTIVE]: { fetch: fetch, - start: async () => 1676505600, + start: 1676505600, } } } diff --git a/dexs/heraswap/index.ts b/dexs/heraswap/index.ts index c281d5311a..7c00447223 100644 --- a/dexs/heraswap/index.ts +++ b/dexs/heraswap/index.ts @@ -34,7 +34,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ONUS]: { fetch, - start: async () => 1677628800, + start: 1677628800, }, }, }; diff --git a/dexs/hermes-protocol/index.ts b/dexs/hermes-protocol/index.ts index 41fa776d1e..63c420584e 100644 --- a/dexs/hermes-protocol/index.ts +++ b/dexs/hermes-protocol/index.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.METIS]: { fetch: getDexVolumeExports({ chain: CHAIN.METIS, factory: FACTORY_ADDRESS }), - start: async () => 1670544000, + start: 1670544000, }, } }; diff --git a/dexs/hmx/index.ts b/dexs/hmx/index.ts index 57fc451374..05131417b2 100644 --- a/dexs/hmx/index.ts +++ b/dexs/hmx/index.ts @@ -93,7 +93,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graphs(endpoints)(CHAIN.ARBITRUM), - start: async () => 1687806000, + start: 1687806000, }, }, }; diff --git a/dexs/holdr/index.ts b/dexs/holdr/index.ts index 8850dbd33f..135ea7495a 100644 --- a/dexs/holdr/index.ts +++ b/dexs/holdr/index.ts @@ -26,7 +26,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.AURORA]: { fetch: v1graphs(CHAIN.AURORA as Chain), - start: async () => 1672531200, + start: 1672531200, customBackfill: customBackfill(CHAIN.AURORA as Chain, v1graphs) }, }, diff --git a/dexs/horiza/index.ts b/dexs/horiza/index.ts index 7e46c6d644..d84a44b2d6 100644 --- a/dexs/horiza/index.ts +++ b/dexs/horiza/index.ts @@ -30,7 +30,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: v3Graphs(CHAIN.ARBITRUM), - start: async () => 1704585600, + start: 1704585600, } } } diff --git a/dexs/humble-defi/index.ts b/dexs/humble-defi/index.ts index 2c2696677d..5a0b76afa0 100644 --- a/dexs/humble-defi/index.ts +++ b/dexs/humble-defi/index.ts @@ -27,7 +27,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, } }; diff --git a/dexs/hummus/index.ts b/dexs/hummus/index.ts index d06361077c..17eecc468f 100644 --- a/dexs/hummus/index.ts +++ b/dexs/hummus/index.ts @@ -80,7 +80,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.METIS]: { fetch: fetch, - start: async () => 1661900400, + start: 1661900400, }, }, }; diff --git a/dexs/hydradx/index.ts b/dexs/hydradx/index.ts index f65f0196b6..3273ecd7dc 100644 --- a/dexs/hydradx/index.ts +++ b/dexs/hydradx/index.ts @@ -26,7 +26,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 1692662400, + start: 1692662400, }, } }; diff --git a/dexs/hyperionx/index.ts b/dexs/hyperionx/index.ts index fa67199c34..f1c6aa0ffd 100644 --- a/dexs/hyperionx/index.ts +++ b/dexs/hyperionx/index.ts @@ -58,7 +58,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ZKFAIR]: { fetch: graphs(CHAIN.ZKFAIR), - start: async () => 1706659200, + start: 1706659200, }, }, }; diff --git a/dexs/hyperliquid/index.ts b/dexs/hyperliquid/index.ts index 1b515cd0fa..980f1d1771 100644 --- a/dexs/hyperliquid/index.ts +++ b/dexs/hyperliquid/index.ts @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch, - start: async () => 1677283200, + start: 1677283200, }, } }; diff --git a/dexs/icpswap/index.ts b/dexs/icpswap/index.ts index 3dbd5ad28e..253be025ed 100644 --- a/dexs/icpswap/index.ts +++ b/dexs/icpswap/index.ts @@ -43,7 +43,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ICP]: { fetch: fetch, - start: async () => 1689465600, + start: 1689465600, }, } } diff --git a/dexs/immortalx/index.ts b/dexs/immortalx/index.ts index 4ee14ef47a..2a030470e9 100644 --- a/dexs/immortalx/index.ts +++ b/dexs/immortalx/index.ts @@ -52,7 +52,7 @@ const adapter: Adapter = { adapter: { [CHAIN.CELO]: { fetch: fetch(CHAIN.CELO), - start: async () => 1690848000, + start: 1690848000, }, }, }; diff --git a/dexs/intent-x/index.tsx b/dexs/intent-x/index.tsx index 65b731c602..322cb02396 100644 --- a/dexs/intent-x/index.tsx +++ b/dexs/intent-x/index.tsx @@ -130,7 +130,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch: fetchVolume, - start: async () => 1698796800, + start: 1698796800, }, }, }; diff --git a/dexs/interest-protocol/index.ts b/dexs/interest-protocol/index.ts index 24d6fc46b8..d2db59fb08 100644 --- a/dexs/interest-protocol/index.ts +++ b/dexs/interest-protocol/index.ts @@ -28,7 +28,7 @@ const adapter: SimpleAdapter = { [CHAIN.SUI]: { fetch, runAtCurrTime: true, - start: async () => 1684003134, + start: 1684003134, } }, }; diff --git a/dexs/iziswap/index.ts b/dexs/iziswap/index.ts index 9aa710339f..cc0e514288 100644 --- a/dexs/iziswap/index.ts +++ b/dexs/iziswap/index.ts @@ -77,7 +77,7 @@ for (const chain in chains) { if (chains.hasOwnProperty(chain)) { adapters[chain] = { fetch: fetch(chain), - start: async () => startTime, + start: startTime, customBackfill: customBackfill(chain, fetch) }; }; diff --git a/dexs/jediswap/index.ts b/dexs/jediswap/index.ts index cfacebcb48..4e69957682 100644 --- a/dexs/jediswap/index.ts +++ b/dexs/jediswap/index.ts @@ -49,7 +49,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.STARKNET]: { fetch: fetch, - start: async () => 1669593600, + start: 1669593600, }, }, }; diff --git a/dexs/joe-v2.1/index.ts b/dexs/joe-v2.1/index.ts index 76ee191820..0ef5e0cd2f 100644 --- a/dexs/joe-v2.1/index.ts +++ b/dexs/joe-v2.1/index.ts @@ -141,15 +141,15 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), - start: async () => 1682121600, + start: 1682121600, }, [CHAIN.BSC]: { fetch: graph(CHAIN.BSC), - start: async () => 1681084800, + start: 1681084800, }, [CHAIN.AVAX]: { fetch: graph(CHAIN.AVAX), - start: async () => 1682467200, + start: 1682467200, }, } }; diff --git a/dexs/jojo/index.ts b/dexs/jojo/index.ts index 2fe05a3316..f9a65c1bc9 100644 --- a/dexs/jojo/index.ts +++ b/dexs/jojo/index.ts @@ -45,11 +45,11 @@ const adapter: SimpleAdapter = { adapter: { // [CHAIN.ERA]: { // fetch: getFetch("zksync"), - // start: async () => 1687017600, + // start: 1687017600, // }, // error [CHAIN.ARBITRUM]: { fetch: getFetch("arbitrum"), - start: async () => 1687017600, + start: 1687017600, }, }, }; diff --git a/dexs/jswap/index.ts b/dexs/jswap/index.ts index f65e4c3cdd..303d9a80a7 100644 --- a/dexs/jswap/index.ts +++ b/dexs/jswap/index.ts @@ -61,7 +61,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.OKEXCHAIN]: { fetch: graphs(CHAIN.OKEXCHAIN), - start: async () => 1627385129, + start: 1627385129, }, }, }; diff --git a/dexs/jupiter-perpetual/index.ts b/dexs/jupiter-perpetual/index.ts index 6eda873b2a..640fb45847 100644 --- a/dexs/jupiter-perpetual/index.ts +++ b/dexs/jupiter-perpetual/index.ts @@ -26,7 +26,7 @@ const adapter = { [CHAIN.SOLANA]: { fetch, runAtCurrTime: true, - start: async () => 1705968000, + start: 1705968000, }, }, }, diff --git a/dexs/karura-swap/index.ts b/dexs/karura-swap/index.ts index 0b56b92564..e61e9764d1 100644 --- a/dexs/karura-swap/index.ts +++ b/dexs/karura-swap/index.ts @@ -49,7 +49,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.KARURA]: { fetch: fetch, - start: async () => 1656818240, + start: 1656818240, customBackfill: customBackfill(CHAIN.KARURA as Chain, () => fetch) }, }, diff --git a/dexs/kava-swap/index.ts b/dexs/kava-swap/index.ts index a455bf097f..0de987d68a 100644 --- a/dexs/kava-swap/index.ts +++ b/dexs/kava-swap/index.ts @@ -88,7 +88,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.KAVA]: { fetch, - start: async () => 0, + start: 0, runAtCurrTime: true }, }, diff --git a/dexs/kiloex/index.ts b/dexs/kiloex/index.ts index 27a62d3bf1..9f8ee7d1d7 100644 --- a/dexs/kiloex/index.ts +++ b/dexs/kiloex/index.ts @@ -44,13 +44,13 @@ const fetch = (chainId: string) => { const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { - fetch: fetch(CHAIN.BSC), start: async () => 1686528000 + fetch: fetch(CHAIN.BSC), start: 1686528000 }, [CHAIN.OP_BNB]: { - fetch: fetch(CHAIN.OP_BNB), start: async () => 1696636800 + fetch: fetch(CHAIN.OP_BNB), start: 1696636800 }, [CHAIN.MANTA]: { - fetch: fetch(CHAIN.MANTA), start: async () => 1698796800 + fetch: fetch(CHAIN.MANTA), start: 1698796800 }, }, }; diff --git a/dexs/kinetix-derivative/index.ts b/dexs/kinetix-derivative/index.ts index da9b48e2f0..ad4c6eb9fc 100644 --- a/dexs/kinetix-derivative/index.ts +++ b/dexs/kinetix-derivative/index.ts @@ -76,11 +76,8 @@ const getFetch = }; }; -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.KAVA]: 1693267200, - }; - return startTimestamps[chain]; +const startTimestamps: { [chain: string]: number } = { + [CHAIN.KAVA]: 1693267200, }; const adapter: SimpleAdapter = { @@ -89,7 +86,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: getFetch(chain), - start: async () => getStartTimestamp(chain), + start: startTimestamps[chain], }, }; }, {}), diff --git a/dexs/kinetix-v3/index.ts b/dexs/kinetix-v3/index.ts index 499171b4e7..50f0ad489b 100644 --- a/dexs/kinetix-v3/index.ts +++ b/dexs/kinetix-v3/index.ts @@ -37,7 +37,7 @@ const v3 = Object.keys(endpointsV3).reduce( ...acc, [chain]: { fetch: v3Graphs(chain as Chain), - start: async () => startTimeV3[chain], + start: startTimeV3[chain], meta: { methodology: { Fees: "Each pool charge between 0.01% to 1% fee", diff --git a/dexs/knightswap-finance/index.ts b/dexs/knightswap-finance/index.ts index abc20bb546..1473ad90b7 100644 --- a/dexs/knightswap-finance/index.ts +++ b/dexs/knightswap-finance/index.ts @@ -26,11 +26,11 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: v2Graph(CHAIN.BSC), - start: async () => 1635379200, + start: 1635379200, }, [CHAIN.FANTOM]: { fetch: v2Graph(CHAIN.FANTOM), - start: async () => 1637798400, + start: 1637798400, }, }, }; diff --git a/dexs/kokonut-swap/index.ts b/dexs/kokonut-swap/index.ts index 3447bfb0a0..724c936c6c 100644 --- a/dexs/kokonut-swap/index.ts +++ b/dexs/kokonut-swap/index.ts @@ -41,17 +41,17 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.KLAYTN]: { fetch, - start: async () => 1672358400, + start: 1672358400, runAtCurrTime: true }, [CHAIN.POLYGON_ZKEVM]: { fetch: fetchZKEVM, - start: async () => 1687132800, + start: 1687132800, runAtCurrTime: true }, [CHAIN.BASE]: { fetch: fetchBASE, - start: async () => 1691570805, + start: 1691570805, runAtCurrTime: true }, }, diff --git a/dexs/koyo/index.ts b/dexs/koyo/index.ts index 048d0d0245..ff4812bb77 100644 --- a/dexs/koyo/index.ts +++ b/dexs/koyo/index.ts @@ -21,7 +21,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BOBA]: { fetch: graphs(CHAIN.BOBA), - start: async () => 1655104044, + start: 1655104044, customBackfill: customBackfill(CHAIN.BOBA, graphs), }, }, diff --git a/dexs/kperp-exchange/index.ts b/dexs/kperp-exchange/index.ts index 26263f8e6b..f6e0044b29 100644 --- a/dexs/kperp-exchange/index.ts +++ b/dexs/kperp-exchange/index.ts @@ -50,11 +50,8 @@ const getFetch = (chain: string): Fetch => async (timestamp: number) => { } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.KAVA]: 2578000, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.KAVA]: 2578000, } const adapter: SimpleAdapter = { @@ -63,7 +60,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: getFetch(chain), - start: async () => getStartTimestamp(chain), + start: startTimestamps[chain], runAtCurrTime: true } } diff --git a/dexs/kriya-dex/index.ts b/dexs/kriya-dex/index.ts index cbc61fbdd9..b847703afa 100644 --- a/dexs/kriya-dex/index.ts +++ b/dexs/kriya-dex/index.ts @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.SUI]: { fetch: fetch(CHAIN.SUI), - start: async () => 1683604174, + start: 1683604174, } }, }; diff --git a/dexs/ktx/index.ts b/dexs/ktx/index.ts index 0de9b7d929..0f38b3aff2 100644 --- a/dexs/ktx/index.ts +++ b/dexs/ktx/index.ts @@ -38,59 +38,56 @@ interface IGraphResponse { const getFetch = (query: string) => - (chain: string): Fetch => - async (timestamp: number) => { - const dayTimestamp = getUniqStartOfTodayTimestamp( - new Date(timestamp * 1000) - ); - const dailyData: IGraphResponse = await request(endpoints[chain], query, { - id: - chain === CHAIN.BSC || - chain === CHAIN.MANTLE || - chain === CHAIN.ARBITRUM - ? String(dayTimestamp) - : String(dayTimestamp) + ":daily", - period: "daily", - }); - const totalData: IGraphResponse = await request(endpoints[chain], query, { - id: "total", - period: "total", - }); + (chain: string): Fetch => + async (timestamp: number) => { + const dayTimestamp = getUniqStartOfTodayTimestamp( + new Date(timestamp * 1000) + ); + const dailyData: IGraphResponse = await request(endpoints[chain], query, { + id: + chain === CHAIN.BSC || + chain === CHAIN.MANTLE || + chain === CHAIN.ARBITRUM + ? String(dayTimestamp) + : String(dayTimestamp) + ":daily", + period: "daily", + }); + const totalData: IGraphResponse = await request(endpoints[chain], query, { + id: "total", + period: "total", + }); - return { - timestamp: dayTimestamp, - dailyVolume: - dailyData.volumeStats.length == 1 - ? String( - Number( - Object.values(dailyData.volumeStats[0]).reduce((sum, element) => - String(Number(sum) + Number(element)) - ) - ) * + return { + timestamp: dayTimestamp, + dailyVolume: + dailyData.volumeStats.length == 1 + ? String( + Number( + Object.values(dailyData.volumeStats[0]).reduce((sum, element) => + String(Number(sum) + Number(element)) + ) + ) * 10 ** -30 - ) - : undefined, - totalVolume: - totalData.volumeStats.length == 1 - ? String( - Number( - Object.values(totalData.volumeStats[0]).reduce((sum, element) => - String(Number(sum) + Number(element)) - ) - ) * + ) + : undefined, + totalVolume: + totalData.volumeStats.length == 1 + ? String( + Number( + Object.values(totalData.volumeStats[0]).reduce((sum, element) => + String(Number(sum) + Number(element)) + ) + ) * 10 ** -30 - ) - : undefined, - }; - }; + ) + : undefined, + }; + }; -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.BSC]: 1682870400, - [CHAIN.MANTLE]: 1693843200, - [CHAIN.ARBITRUM]: 1705248000, - }; - return startTimestamps[chain]; +const startTimestamps: { [chain: string]: number } = { + [CHAIN.BSC]: 1682870400, + [CHAIN.MANTLE]: 1693843200, + [CHAIN.ARBITRUM]: 1705248000, }; const adapter: BreakdownAdapter = { @@ -100,7 +97,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataSwap)(chain), - start: async () => getStartTimestamp(chain), + start: startTimestamps[chain], }, }; }, {}), @@ -109,7 +106,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain), + start: startTimestamps[chain], }, }; }, {}), diff --git a/dexs/kwenta/index.ts b/dexs/kwenta/index.ts index 20c5cf0262..19d2922c99 100644 --- a/dexs/kwenta/index.ts +++ b/dexs/kwenta/index.ts @@ -29,7 +29,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetchData(CHAIN.OPTIMISM), - start: async () => 1682121600, + start: 1682121600, }, } }; diff --git a/dexs/levana/index.ts b/dexs/levana/index.ts index 2b481d0979..61d049effd 100644 --- a/dexs/levana/index.ts +++ b/dexs/levana/index.ts @@ -20,7 +20,7 @@ const adapter: SimpleAdapter = { totalVolume: totalVolume.toString() } }, - start: async () => 1688628356 + start: 1688628356 }, sei: { fetch: async (timestamp: number): Promise => { @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = { totalVolume: totalVolume.toString() } }, - start: async () => 1691305909 + start: 1691305909 }, injective: { fetch: async (timestamp: number): Promise => { @@ -54,7 +54,7 @@ const adapter: SimpleAdapter = { totalVolume: totalVolume.toString() } }, - start: async () => 1695738685 + start: 1695738685 } } } diff --git a/dexs/level-finance-derivative/index.ts b/dexs/level-finance-derivative/index.ts index e3cb799e3b..67cdac30bc 100644 --- a/dexs/level-finance-derivative/index.ts +++ b/dexs/level-finance-derivative/index.ts @@ -50,24 +50,20 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.BSC]: 1670630400, - [CHAIN.ARBITRUM]: 1686344400, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.BSC]: 1670630400, + [CHAIN.ARBITRUM]: 1686344400, } - const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: getFetch(historicalDataDerivatives)(CHAIN.BSC), - start: async () => getStartTimestamp(CHAIN.BSC), + start: startTimestamps[CHAIN.BSC], }, [CHAIN.ARBITRUM]: { fetch: getFetch(historicalDataDerivatives)(CHAIN.ARBITRUM), - start: async () => getStartTimestamp(CHAIN.ARBITRUM), + start: startTimestamps[CHAIN.ARBITRUM], } }, }; diff --git a/dexs/level-finance/index.ts b/dexs/level-finance/index.ts index a959611b8d..7fc266b4e6 100644 --- a/dexs/level-finance/index.ts +++ b/dexs/level-finance/index.ts @@ -47,24 +47,20 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.BSC]: 1670630400, - [CHAIN.ARBITRUM]: 1686344400, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.BSC]: 1670630400, + [CHAIN.ARBITRUM]: 1686344400, } - const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: getFetch(historicalDataSwap)(CHAIN.BSC), - start: async () => getStartTimestamp(CHAIN.BSC), + start: startTimestamps[CHAIN.BSC], }, [CHAIN.ARBITRUM]: { fetch: getFetch(historicalDataSwap)(CHAIN.ARBITRUM), - start: async () => getStartTimestamp(CHAIN.ARBITRUM), + start: startTimestamps[CHAIN.ARBITRUM], } }, }; diff --git a/dexs/lexer/index.ts b/dexs/lexer/index.ts index 9f20cdb04c..54e2453a57 100644 --- a/dexs/lexer/index.ts +++ b/dexs/lexer/index.ts @@ -107,13 +107,13 @@ const adapter: BreakdownAdapter = { swap: { [CHAIN.ARBITRUM]: { fetch: fetchSwapValue, - start: async () => 1704758400, + start: 1704758400, } }, derivatives: { [CHAIN.ARBITRUM]: { fetch: fetchDerivativesValue, - start: async () => 1704758400, + start: 1704758400, } } } diff --git a/dexs/lighter/index.ts b/dexs/lighter/index.ts index 959a687f33..4c14b2dcee 100644 --- a/dexs/lighter/index.ts +++ b/dexs/lighter/index.ts @@ -20,7 +20,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.ARBITRUM]: { fetch, - start: async () => 1677934513, + start: 1677934513, }, }, }; diff --git a/dexs/lighterv2/index.ts b/dexs/lighterv2/index.ts index 7de1487310..30b972e00e 100644 --- a/dexs/lighterv2/index.ts +++ b/dexs/lighterv2/index.ts @@ -50,7 +50,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetchV2, - start: async () => 1697144400, + start: 1697144400, }, }, }; diff --git a/dexs/liquidswap/index.ts b/dexs/liquidswap/index.ts index 76a2c855c7..383d477414 100644 --- a/dexs/liquidswap/index.ts +++ b/dexs/liquidswap/index.ts @@ -33,7 +33,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.APTOS]: { fetch, - start: async () => 1668902400 + start: 1668902400 }, }, }; diff --git a/dexs/luigiswap/index.ts b/dexs/luigiswap/index.ts index 39169ab4ba..82149b53a1 100644 --- a/dexs/luigiswap/index.ts +++ b/dexs/luigiswap/index.ts @@ -22,7 +22,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.SCROLL]: { fetch: fetchVolume, - start: async () => START_TIMESTAMP, + start: START_TIMESTAMP, }, }, }; diff --git a/dexs/lumenswap/index.ts b/dexs/lumenswap/index.ts index bc3dbf6da5..2d6af898f1 100644 --- a/dexs/lumenswap/index.ts +++ b/dexs/lumenswap/index.ts @@ -33,7 +33,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.STELLAR]: { fetch, - start: async () => 1648771200, + start: 1648771200, }, }, }; diff --git a/dexs/maia-v3/index.ts b/dexs/maia-v3/index.ts index fe4d113061..e816a089d8 100644 --- a/dexs/maia-v3/index.ts +++ b/dexs/maia-v3/index.ts @@ -45,7 +45,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.METIS]: { fetch: v3Graphs(CHAIN.METIS), - start: async () => 1680307200, + start: 1680307200, meta: { methodology: { ...methodology, diff --git a/dexs/mango-v4/index.ts b/dexs/mango-v4/index.ts index 0ec2e34a91..c134a31382 100644 --- a/dexs/mango-v4/index.ts +++ b/dexs/mango-v4/index.ts @@ -59,7 +59,7 @@ const adapter: BreakdownAdapter = { fetch: fetchSpotVolume, runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, }, perp: { @@ -67,7 +67,7 @@ const adapter: BreakdownAdapter = { fetch: fetchPerpVolume, runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, }, }, diff --git a/dexs/maverick/index.ts b/dexs/maverick/index.ts index 98474a0dfa..d2cf308802 100644 --- a/dexs/maverick/index.ts +++ b/dexs/maverick/index.ts @@ -7,19 +7,19 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchVolume(CHAIN.ETHEREUM), - start: async () => 1676851200, + start: 1676851200, }, [CHAIN.ERA]: { fetch: fetchVolume(CHAIN.ERA), - start: async () => 1681257600, + start: 1681257600, }, [CHAIN.BSC]: { fetch: fetchVolume(CHAIN.BSC), - start: async () => 29241049, + start: 29241049, }, [CHAIN.BASE]: { fetch: fetchVolume(CHAIN.BASE), - start: async () => 1489614, + start: 1489614, }, }, }; diff --git a/dexs/megaton-finance/index.ts b/dexs/megaton-finance/index.ts index f5171590b9..f604e1608e 100644 --- a/dexs/megaton-finance/index.ts +++ b/dexs/megaton-finance/index.ts @@ -33,7 +33,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.TON]: { fetch, - start: async () => 1675814400, + start: 1675814400, }, }, }; diff --git a/dexs/meridian-trade/index.ts b/dexs/meridian-trade/index.ts index f0865025a3..69cecb7b7c 100644 --- a/dexs/meridian-trade/index.ts +++ b/dexs/meridian-trade/index.ts @@ -61,11 +61,8 @@ const getFetch = (query: string) => (chain: string): Fetch => async (timestamp: } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.BASE]: 1691829674, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.BASE]: 1691829674, } const adapter: BreakdownAdapter = { @@ -75,7 +72,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataSwap)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}), @@ -84,7 +81,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}) diff --git a/dexs/merkle-trade/index.ts b/dexs/merkle-trade/index.ts index 921b0a3bfc..31c7e625f5 100644 --- a/dexs/merkle-trade/index.ts +++ b/dexs/merkle-trade/index.ts @@ -21,7 +21,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.APTOS]: { fetch: fetch, - start: async () => 1698138000, + start: 1698138000, }, }, }; diff --git a/dexs/metavault-derivative/index.ts b/dexs/metavault-derivative/index.ts index fed0c6e532..c93b5e9f67 100644 --- a/dexs/metavault-derivative/index.ts +++ b/dexs/metavault-derivative/index.ts @@ -30,68 +30,64 @@ interface IGraphResponse { const getFetch = (chain: string): Fetch => - async (timestamp: number) => { - const dayTimestamp = getUniqStartOfTodayTimestamp( - new Date(timestamp * 1000) - ); - const dailyData: IGraphResponse = await request( - endpoints[chain], - historicalData, - { - id: String(dayTimestamp) + ":daily", - period: "daily", - } - ); - const totalData: IGraphResponse = await request( - endpoints[chain], - historicalData, - { - id: "total", - period: "total", - } - ); + async (timestamp: number) => { + const dayTimestamp = getUniqStartOfTodayTimestamp( + new Date(timestamp * 1000) + ); + const dailyData: IGraphResponse = await request( + endpoints[chain], + historicalData, + { + id: String(dayTimestamp) + ":daily", + period: "daily", + } + ); + const totalData: IGraphResponse = await request( + endpoints[chain], + historicalData, + { + id: "total", + period: "total", + } + ); - return { - timestamp: dayTimestamp, - dailyVolume: - dailyData.volumeStats.length == 1 - ? String( + return { + timestamp: dayTimestamp, + dailyVolume: + dailyData.volumeStats.length == 1 + ? String( Number( Object.values(dailyData.volumeStats[0]).reduce((sum, element) => String(Number(sum) + Number(element)) ) ) * - 10 ** -30 + 10 ** -30 ) - : undefined, - totalVolume: - totalData.volumeStats.length == 1 - ? String( + : undefined, + totalVolume: + totalData.volumeStats.length == 1 + ? String( Number( Object.values(totalData.volumeStats[0]).reduce((sum, element) => String(Number(sum) + Number(element)) ) ) * - 10 ** -30 + 10 ** -30 ) - : undefined, + : undefined, + }; }; - }; -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.POLYGON]: 1654041600, - }; - return startTimestamps[chain]; +const startTimestamps: { [chain: string]: number } = { + [CHAIN.POLYGON]: 1654041600, }; - const adapter: SimpleAdapter = { adapter: Object.keys(endpoints).reduce((acc, chain) => { return { ...acc, [chain]: { fetch: getFetch(chain), - start: async () => getStartTimestamp(chain), + start: startTimestamps[chain], runAtCurrTime: true, }, }; diff --git a/dexs/metavault-derivatives-v2/index.ts b/dexs/metavault-derivatives-v2/index.ts index 970c1e7488..edcacf3514 100644 --- a/dexs/metavault-derivatives-v2/index.ts +++ b/dexs/metavault-derivatives-v2/index.ts @@ -58,7 +58,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.LINEA]: { fetch: fetch(), - start: async () => 1701950449, + start: 1701950449, meta: { methodology, }, diff --git a/dexs/metavault-v3/index.ts b/dexs/metavault-v3/index.ts index 871176dd18..e69c44baa8 100644 --- a/dexs/metavault-v3/index.ts +++ b/dexs/metavault-v3/index.ts @@ -40,7 +40,7 @@ const v3 = Object.keys(endpointsV3).reduce( ...acc, [chain]: { fetch: v3Graphs(chain as Chain), - start: async () => startTimeV3[chain], + start: startTimeV3[chain], meta: { methodology: { Fees: "Each pool charge between 0.01% to 1% fee", diff --git a/dexs/metavault.trade/index.ts b/dexs/metavault.trade/index.ts index 18caa05692..396fd10892 100644 --- a/dexs/metavault.trade/index.ts +++ b/dexs/metavault.trade/index.ts @@ -50,11 +50,8 @@ const getFetch = (chain: string): Fetch => async (timestamp: number) => { } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.POLYGON]: 1654041600, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.POLYGON]: 1654041600, } const adapter: SimpleAdapter = { @@ -63,7 +60,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: getFetch(chain), - start: async () => getStartTimestamp(chain), + start: startTimestamps[chain], runAtCurrTime: true } } diff --git a/dexs/miaswap/index.ts b/dexs/miaswap/index.ts index c0761f1794..335f43b31a 100644 --- a/dexs/miaswap/index.ts +++ b/dexs/miaswap/index.ts @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ONUS]: { fetch: v3Graphs(CHAIN.ONUS), - start: async () => 1685577600, + start: 1685577600, }, }, }; diff --git a/dexs/mimo/index.ts b/dexs/mimo/index.ts index c7e6a76019..b0a49e34b1 100644 --- a/dexs/mimo/index.ts +++ b/dexs/mimo/index.ts @@ -29,7 +29,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: graphs(chain as Chain), - start: async () => 1624332218 + start: 1624332218 } } }, {}) diff --git a/dexs/mobius-money/index.ts b/dexs/mobius-money/index.ts index ee2669f338..62716277cb 100644 --- a/dexs/mobius-money/index.ts +++ b/dexs/mobius-money/index.ts @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.CELO]: { fetch: graphs(CHAIN.CELO), - start: async () => 1636514733, + start: 1636514733, // customBackfill: customBackfill(CHAIN.CELO as Chain, graphs) }, }, diff --git a/dexs/moon-swap/index.ts b/dexs/moon-swap/index.ts index 1cf631f143..9fd2c26dad 100644 --- a/dexs/moon-swap/index.ts +++ b/dexs/moon-swap/index.ts @@ -34,7 +34,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.CONFLUX]: { fetch, - start: async () => START_TIME, + start: START_TIME, }, }, }; diff --git a/dexs/morphex-old/index.ts b/dexs/morphex-old/index.ts index 2b25d986b5..147ea673fb 100644 --- a/dexs/morphex-old/index.ts +++ b/dexs/morphex-old/index.ts @@ -38,52 +38,49 @@ interface IGraphResponse { const getFetch = (query: string) => - (chain: string): Fetch => - async (timestamp: number) => { - const dayTimestamp = getUniqStartOfTodayTimestamp( - new Date(timestamp * 1000) - ); - const dailyData: IGraphResponse = await request(endpoints[chain], query, { - id: String(dayTimestamp) + ":daily", - period: "daily", - }); - const totalData: IGraphResponse = await request(endpoints[chain], query, { - id: "total", - period: "total", - }); + (chain: string): Fetch => + async (timestamp: number) => { + const dayTimestamp = getUniqStartOfTodayTimestamp( + new Date(timestamp * 1000) + ); + const dailyData: IGraphResponse = await request(endpoints[chain], query, { + id: String(dayTimestamp) + ":daily", + period: "daily", + }); + const totalData: IGraphResponse = await request(endpoints[chain], query, { + id: "total", + period: "total", + }); - return { - timestamp: dayTimestamp, - dailyVolume: - dailyData.volumeStats.length == 1 - ? String( - Number( - Object.values(dailyData.volumeStats[0]).reduce((sum, element) => - String(Number(sum) + Number(element)) - ) - ) * + return { + timestamp: dayTimestamp, + dailyVolume: + dailyData.volumeStats.length == 1 + ? String( + Number( + Object.values(dailyData.volumeStats[0]).reduce((sum, element) => + String(Number(sum) + Number(element)) + ) + ) * 10 ** -30 - ) - : undefined, - totalVolume: - totalData.volumeStats.length == 1 - ? String( - Number( - Object.values(totalData.volumeStats[0]).reduce((sum, element) => - String(Number(sum) + Number(element)) - ) - ) * + ) + : undefined, + totalVolume: + totalData.volumeStats.length == 1 + ? String( + Number( + Object.values(totalData.volumeStats[0]).reduce((sum, element) => + String(Number(sum) + Number(element)) + ) + ) * 10 ** -30 - ) - : undefined, - }; - }; + ) + : undefined, + }; + }; -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.FANTOM]: 1677883020, - }; - return startTimestamps[chain]; +const startTimestamps: { [chain: string]: number } = { + [CHAIN.FANTOM]: 1677883020, }; const adapter: BreakdownAdapter = { @@ -92,14 +89,14 @@ const adapter: BreakdownAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.FANTOM]: { fetch: getFetch(historicalDataSwap)(CHAIN.FANTOM), - start: async () => getStartTimestamp(CHAIN.FANTOM), + start: startTimestamps[CHAIN.FANTOM], }, }, derivatives: { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.FANTOM]: { fetch: getFetch(historicalDataDerivatives)(CHAIN.FANTOM), - start: async () => getStartTimestamp(CHAIN.FANTOM), + start: startTimestamps[CHAIN.FANTOM], }, }, }, diff --git a/dexs/morphex/index.ts b/dexs/morphex/index.ts index 6af97612ee..6e14a4b88b 100644 --- a/dexs/morphex/index.ts +++ b/dexs/morphex/index.ts @@ -39,53 +39,50 @@ interface IGraphResponse { const getFetch = (query: string) => - (chain: string): Fetch => - async (timestamp: number) => { - const dayTimestamp = getUniqStartOfTodayTimestamp( - new Date(timestamp * 1000) - ); - const dailyData: IGraphResponse = await request(endpoints[chain], query, { - id: String(dayTimestamp) + ":daily", - period: "daily", - }); - const totalData: IGraphResponse = await request(endpoints[chain], query, { - id: "total", - period: "total", - }); + (chain: string): Fetch => + async (timestamp: number) => { + const dayTimestamp = getUniqStartOfTodayTimestamp( + new Date(timestamp * 1000) + ); + const dailyData: IGraphResponse = await request(endpoints[chain], query, { + id: String(dayTimestamp) + ":daily", + period: "daily", + }); + const totalData: IGraphResponse = await request(endpoints[chain], query, { + id: "total", + period: "total", + }); - return { - timestamp: dayTimestamp, - dailyVolume: - dailyData.volumeStats.length == 1 - ? String( - Number( - Object.values(dailyData.volumeStats[0]).reduce((sum, element) => - String(Number(sum) + Number(element)) - ) - ) * + return { + timestamp: dayTimestamp, + dailyVolume: + dailyData.volumeStats.length == 1 + ? String( + Number( + Object.values(dailyData.volumeStats[0]).reduce((sum, element) => + String(Number(sum) + Number(element)) + ) + ) * 10 ** -30 - ) - : undefined, - totalVolume: - totalData.volumeStats.length == 1 - ? String( - Number( - Object.values(totalData.volumeStats[0]).reduce((sum, element) => - String(Number(sum) + Number(element)) - ) - ) * + ) + : undefined, + totalVolume: + totalData.volumeStats.length == 1 + ? String( + Number( + Object.values(totalData.volumeStats[0]).reduce((sum, element) => + String(Number(sum) + Number(element)) + ) + ) * 10 ** -30 - ) - : undefined, - }; - }; + ) + : undefined, + }; + }; -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.FANTOM]: 1690020000, - [CHAIN.BSC]: 1686783600, - }; - return startTimestamps[chain]; +const startTimestamps: { [chain: string]: number } = { + [CHAIN.FANTOM]: 1690020000, + [CHAIN.BSC]: 1686783600, }; const adapter: BreakdownAdapter = { @@ -93,21 +90,21 @@ const adapter: BreakdownAdapter = { swap: { [CHAIN.FANTOM]: { fetch: getFetch(historicalDataSwap)(CHAIN.FANTOM), - start: async () => getStartTimestamp(CHAIN.FANTOM), + start: startTimestamps[CHAIN.FANTOM], }, [CHAIN.BSC]: { fetch: getFetch(historicalDataSwap)(CHAIN.BSC), - start: async () => getStartTimestamp(CHAIN.BSC), + start: startTimestamps[CHAIN.BSC], }, }, derivatives: { [CHAIN.FANTOM]: { fetch: getFetch(historicalDataDerivatives)(CHAIN.FANTOM), - start: async () => getStartTimestamp(CHAIN.FANTOM), + start: startTimestamps[CHAIN.FANTOM], }, [CHAIN.BSC]: { fetch: getFetch(historicalDataDerivatives)(CHAIN.BSC), - start: async () => getStartTimestamp(CHAIN.BSC), + start: startTimestamps[CHAIN.BSC], }, }, }, diff --git a/dexs/mu-exchange/index.ts b/dexs/mu-exchange/index.ts index d3884d2414..9d57e03418 100644 --- a/dexs/mu-exchange/index.ts +++ b/dexs/mu-exchange/index.ts @@ -58,7 +58,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.XDAI]: { fetch: getFetch(CHAIN.XDAI), - start: async () => 1699488000, + start: 1699488000, }, }, }; diff --git a/dexs/muesliswap/index.ts b/dexs/muesliswap/index.ts index 752dad28f5..46f7dd4490 100644 --- a/dexs/muesliswap/index.ts +++ b/dexs/muesliswap/index.ts @@ -37,7 +37,7 @@ const adapters = (() => { }); milkomeda.adapter[CHAIN.CARDANO] = { - start: async () => 1638057600, + start: 1638057600, fetch: fetch, }; return milkomeda; diff --git a/dexs/mummy-finance/index.ts b/dexs/mummy-finance/index.ts index be91ba3c1a..51ebd2f824 100644 --- a/dexs/mummy-finance/index.ts +++ b/dexs/mummy-finance/index.ts @@ -52,24 +52,20 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.FANTOM]: 1670198400, - [CHAIN.OPTIMISM]: 1677603600, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.FANTOM]: 1670198400, + [CHAIN.OPTIMISM]: 1677603600, } - const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch: getFetch(historicalDataSwap)(CHAIN.FANTOM), - start: async () => getStartTimestamp(CHAIN.FANTOM), + start: startTimestamps[CHAIN.FANTOM], }, [CHAIN.OPTIMISM]: { fetch: getFetch(historicalDataSwap)(CHAIN.OPTIMISM), - start: async () => getStartTimestamp(CHAIN.OPTIMISM), + start: startTimestamps[CHAIN.OPTIMISM], }, }, }; diff --git a/dexs/myswap/index.ts b/dexs/myswap/index.ts index 4b9f550761..a0c397648f 100644 --- a/dexs/myswap/index.ts +++ b/dexs/myswap/index.ts @@ -45,7 +45,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.STARKNET]: { fetch, - start: async () => 1668729600 + start: 1668729600 }, }, }; diff --git a/dexs/nearpad/index.ts b/dexs/nearpad/index.ts index 0b1a844cbe..6927d857ab 100644 --- a/dexs/nearpad/index.ts +++ b/dexs/nearpad/index.ts @@ -18,7 +18,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.AURORA]: { fetch: getDexVolumeExports({ chain: CHAIN.AURORA, pools }), - start: async () => 1678838400, + start: 1678838400, } } } diff --git a/dexs/noah-swap/index.ts b/dexs/noah-swap/index.ts index 130f25beb7..cc87493faf 100644 --- a/dexs/noah-swap/index.ts +++ b/dexs/noah-swap/index.ts @@ -36,7 +36,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.EOS_EVM]: { fetch: fetchVolume, - start: async () => 1699315200 + start: 1699315200 } } } diff --git a/dexs/nomiswap/index.ts b/dexs/nomiswap/index.ts index e8f15d211c..29ed48eba9 100644 --- a/dexs/nomiswap/index.ts +++ b/dexs/nomiswap/index.ts @@ -38,7 +38,7 @@ const adapters: SimpleAdapter = { ...data } }, - start: async () => 1634710338, + start: 1634710338, } } } diff --git a/dexs/okcswap/index.ts b/dexs/okcswap/index.ts index fb08f183ca..a3c6e271b3 100644 --- a/dexs/okcswap/index.ts +++ b/dexs/okcswap/index.ts @@ -58,7 +58,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.OKEXCHAIN]: { fetch: graphs(CHAIN.OKEXCHAIN), - start: async () => 1661126400, + start: 1661126400, }, }, }; diff --git a/dexs/openbook/index.ts b/dexs/openbook/index.ts index f92b83ab14..10541de120 100644 --- a/dexs/openbook/index.ts +++ b/dexs/openbook/index.ts @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = { [CHAIN.SOLANA]: { fetch: fetch, runAtCurrTime: true, - start: async () => 1668643200, + start: 1668643200, }, }, }; diff --git a/dexs/opx-finance/index.ts b/dexs/opx-finance/index.ts index 0a0380def3..a5be41d27f 100644 --- a/dexs/opx-finance/index.ts +++ b/dexs/opx-finance/index.ts @@ -50,19 +50,15 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.OPTIMISM]: 1667520000, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.OPTIMISM]: 1667520000, } - const adapter: SimpleAdapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: getFetch(historicalDataSwap)(CHAIN.OPTIMISM), - start: async () => getStartTimestamp(CHAIN.OPTIMISM), + start: startTimestamps[CHAIN.OPTIMISM], }, }, }; diff --git a/dexs/oraidex/index.ts b/dexs/oraidex/index.ts index a1f9bd0f47..d0a6f1a768 100644 --- a/dexs/oraidex/index.ts +++ b/dexs/oraidex/index.ts @@ -30,7 +30,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ORAI]: { fetch, - start: async () => 1669248000, + start: 1669248000, }, }, }; diff --git a/dexs/orca/index.ts b/dexs/orca/index.ts index 5aa6c907cf..6421c56e54 100644 --- a/dexs/orca/index.ts +++ b/dexs/orca/index.ts @@ -19,7 +19,7 @@ export default { [CHAIN.SOLANA]: { fetch: fetch, runAtCurrTime: true, - start: async () => 1663113600, + start: 1663113600, } } } diff --git a/dexs/oswap/index.ts b/dexs/oswap/index.ts index 68a94ae790..4f721ee8c4 100644 --- a/dexs/oswap/index.ts +++ b/dexs/oswap/index.ts @@ -82,7 +82,7 @@ const fetch = async (timestamp: number) => { const adapter: SimpleAdapter = { adapter: { [CHAIN.OBYTE]: { - start: async () => 1677542400, + start: 1677542400, runAtCurrTime: true, fetch: fetch } diff --git a/dexs/pact/index.ts b/dexs/pact/index.ts index 4f36a38c9b..9dacef4bb1 100644 --- a/dexs/pact/index.ts +++ b/dexs/pact/index.ts @@ -29,7 +29,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ALGORAND]: { fetch, - start: async () => 1667520000, + start: 1667520000, }, }, }; diff --git a/dexs/paint-swap/index.ts b/dexs/paint-swap/index.ts index 1fbcf8977e..28b0e38fbb 100644 --- a/dexs/paint-swap/index.ts +++ b/dexs/paint-swap/index.ts @@ -38,7 +38,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch, - start: async () => 1630584906, + start: 1630584906, }, }, }; diff --git a/dexs/palmswap/index.ts b/dexs/palmswap/index.ts index 1d0869bb5c..933554af41 100644 --- a/dexs/palmswap/index.ts +++ b/dexs/palmswap/index.ts @@ -114,7 +114,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: fetchVolume(), - start: async () => 1689768000, + start: 1689768000, }, }, }; diff --git a/dexs/panacakeswap-perp/index.ts b/dexs/panacakeswap-perp/index.ts index f1d2274df8..83ade6af79 100644 --- a/dexs/panacakeswap-perp/index.ts +++ b/dexs/panacakeswap-perp/index.ts @@ -57,11 +57,11 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: fetchVolume(CHAIN.BSC), - start: async () => 1682035200, + start: 1682035200, }, [CHAIN.ARBITRUM]: { fetch: fetchVolume(CHAIN.ARBITRUM), - start: async () => 1692662400, + start: 1692662400, }, }, }; diff --git a/dexs/pangea-swap/index.ts b/dexs/pangea-swap/index.ts index c266d6a95b..847fce7cb0 100644 --- a/dexs/pangea-swap/index.ts +++ b/dexs/pangea-swap/index.ts @@ -34,7 +34,7 @@ const adapter: SimpleAdapter = { [CHAIN.KLAYTN]: { fetch, runAtCurrTime: true, - start: async () => 0, + start: 0, customBackfill: undefined }, }, diff --git a/dexs/paradex/index.ts b/dexs/paradex/index.ts index cc51a5a4c6..4ac615c197 100644 --- a/dexs/paradex/index.ts +++ b/dexs/paradex/index.ts @@ -33,7 +33,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch, - start: async () => 1693526400, + start: 1693526400, }, }, }; diff --git a/dexs/paycash/index.ts b/dexs/paycash/index.ts index 5ae1edc1da..4f3f6d76ab 100644 --- a/dexs/paycash/index.ts +++ b/dexs/paycash/index.ts @@ -39,7 +39,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.EOS]: { fetch, - start: async () => 1618370204, + start: 1618370204, customBackfill: customBackfill(CHAIN.EOS as Chain, (_chian: string) => fetch) }, }, diff --git a/dexs/pearlfi/index.ts b/dexs/pearlfi/index.ts index 4648dedd9e..6645953dd7 100644 --- a/dexs/pearlfi/index.ts +++ b/dexs/pearlfi/index.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.POLYGON]: { fetch: getDexVolumeExports({ chain: CHAIN.POLYGON, factory: FACTORY_ADDRESS }), - start: async () => 1686268800, + start: 1686268800, }, } }; diff --git a/dexs/pegasys-v3/index.ts b/dexs/pegasys-v3/index.ts index 449a42e22f..c8b7257fa5 100644 --- a/dexs/pegasys-v3/index.ts +++ b/dexs/pegasys-v3/index.ts @@ -22,7 +22,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ROLLUX]: { fetch: graphs(CHAIN.ROLLUX), - start: async () => 1688083200 + start: 1688083200 }, }, }; diff --git a/dexs/perennial-v2/index.ts b/dexs/perennial-v2/index.ts index 92db1a7c4a..ec7092830e 100644 --- a/dexs/perennial-v2/index.ts +++ b/dexs/perennial-v2/index.ts @@ -87,11 +87,8 @@ const getFetch = } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.ARBITRUM]: 1695945600, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.ARBITRUM]: 1695945600, } const adapter: BreakdownAdapter = { @@ -101,7 +98,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(volumeDataQuery)(chain), - start: async () => getStartTimestamp(chain), + start: startTimestamps[chain], }, } }, {}), diff --git a/dexs/pheasantswap/index.ts b/dexs/pheasantswap/index.ts index 88862fc7fa..e27006389d 100644 --- a/dexs/pheasantswap/index.ts +++ b/dexs/pheasantswap/index.ts @@ -26,7 +26,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ENULS]: { fetch, - start: async () => 1682294400, + start: 1682294400, }, }, }; diff --git a/dexs/phoenix/index.ts b/dexs/phoenix/index.ts index 26a561658b..4dcb4f978e 100644 --- a/dexs/phoenix/index.ts +++ b/dexs/phoenix/index.ts @@ -24,7 +24,7 @@ export default { [CHAIN.SOLANA]: { fetch: fetch, // runAtCurrTime: true, - start: async () => 1677456000, + start: 1677456000, } } } diff --git a/dexs/pika-protocol-v4/index.ts b/dexs/pika-protocol-v4/index.ts index 3d8cc298d4..a859d98e9f 100644 --- a/dexs/pika-protocol-v4/index.ts +++ b/dexs/pika-protocol-v4/index.ts @@ -60,7 +60,7 @@ const adapter: Adapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1687910400, + start: 1687910400, }, }, }; diff --git a/dexs/pika-protocol/index.ts b/dexs/pika-protocol/index.ts index d59df43266..670c1f9279 100644 --- a/dexs/pika-protocol/index.ts +++ b/dexs/pika-protocol/index.ts @@ -60,7 +60,7 @@ const adapter: Adapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1658534400, + start: 1658534400, }, }, }; diff --git a/dexs/pinnako/index.ts b/dexs/pinnako/index.ts index 4986b43a49..bc22046bb1 100644 --- a/dexs/pinnako/index.ts +++ b/dexs/pinnako/index.ts @@ -58,11 +58,8 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.ERA]: 1688529600, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.ERA]: 1688529600, } @@ -73,7 +70,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataSwap)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}), @@ -82,7 +79,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}) diff --git a/dexs/platypus/index.ts b/dexs/platypus/index.ts index 926be2f2d3..7ba10753df 100644 --- a/dexs/platypus/index.ts +++ b/dexs/platypus/index.ts @@ -36,7 +36,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.AVAX]: { fetch: fetch, - start: async () => 1635206400, + start: 1635206400, }, }, }; diff --git a/dexs/plenty/index.ts b/dexs/plenty/index.ts index 6b9ea98bb7..bcefd6bba2 100644 --- a/dexs/plenty/index.ts +++ b/dexs/plenty/index.ts @@ -23,7 +23,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.TEZOS]: { fetch: fetch, - start: async () => 1672531200, + start: 1672531200, }, }, }; diff --git a/dexs/polkaswap/index.ts b/dexs/polkaswap/index.ts index 082e6d18df..d7e8cb1a80 100644 --- a/dexs/polkaswap/index.ts +++ b/dexs/polkaswap/index.ts @@ -47,7 +47,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.SORA]: { fetch: fetch, - start: async () => 1673136000 + start: 1673136000 }, }, }; diff --git a/dexs/ponytaswap/index.ts b/dexs/ponytaswap/index.ts index d6e924c8a2..175bb96c49 100644 --- a/dexs/ponytaswap/index.ts +++ b/dexs/ponytaswap/index.ts @@ -33,7 +33,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.RPG]: { fetch, - start: async () => 1678060800 + start: 1678060800 }, }, }; diff --git a/dexs/primex-finance/index.ts b/dexs/primex-finance/index.ts index 5c91571f89..410550ac53 100644 --- a/dexs/primex-finance/index.ts +++ b/dexs/primex-finance/index.ts @@ -166,7 +166,7 @@ const adapters: SimpleAdapter = { ...acc, [chain]: { fetch: fetch(chain), - start: async () => config[chain].start, + start: config[chain].start, } } }, {}) diff --git a/dexs/pulsex-v1/index.ts b/dexs/pulsex-v1/index.ts index 74d7a4a16e..d9e620f0c0 100644 --- a/dexs/pulsex-v1/index.ts +++ b/dexs/pulsex-v1/index.ts @@ -57,7 +57,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.PULSECHAIN]: { fetch: fetchVolume(CHAIN.PULSECHAIN), - start: async () => 1684540800, + start: 1684540800, }, }, }; diff --git a/dexs/quickswap/index.ts b/dexs/quickswap/index.ts index cb9e93e6c9..73c46b890c 100644 --- a/dexs/quickswap/index.ts +++ b/dexs/quickswap/index.ts @@ -88,31 +88,31 @@ const adapter: BreakdownAdapter = { v2: { [CHAIN.POLYGON]: { fetch: graphs(CHAIN.POLYGON), - start: async () => 1602118043 + start: 1602118043 }, }, v3: { [CHAIN.POLYGON]: { fetch: graphsAlgebraV3(CHAIN.POLYGON), - start: async () => 1662425243 + start: 1662425243 }, // [CHAIN.DOGECHAIN]: { // fetch: graphsV3(CHAIN.DOGECHAIN), - // start: async () => 1660694400 + // start: 1660694400 // }, [CHAIN.POLYGON_ZKEVM]: { fetch: graphsAlgebraV3(CHAIN.POLYGON_ZKEVM), - start: async () => 1679875200 + start: 1679875200 }, [CHAIN.MANTA]: { fetch: v3GraphsUni(CHAIN.MANTA), - start: async () => 1697690974 + start: 1697690974 } }, liquidityHub: { [CHAIN.POLYGON]: { fetch: fetchLiquidityHub, - start: async () => 1695042000 + start: 1695042000 }, }, }, diff --git a/dexs/rabbitx/index.ts b/dexs/rabbitx/index.ts index f02ee5cb65..036e3aba27 100644 --- a/dexs/rabbitx/index.ts +++ b/dexs/rabbitx/index.ts @@ -44,7 +44,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.STARKNET]: { fetch: fetchVolume, - start: async () => 1700179200, // Replace with actual start timestamp + start: 1700179200, // Replace with actual start timestamp }, }, }; diff --git a/dexs/ramses-exchange/index.ts b/dexs/ramses-exchange/index.ts index 128fc12f81..74cbe4cbbe 100644 --- a/dexs/ramses-exchange/index.ts +++ b/dexs/ramses-exchange/index.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getDexVolumeExports({ chain: CHAIN.ARBITRUM, factory: FACTORY_ADDRESS }), - start: async () => 1678752000, + start: 1678752000, }, } }; diff --git a/dexs/raydium/index.ts b/dexs/raydium/index.ts index 1028b60187..96dd59e38d 100644 --- a/dexs/raydium/index.ts +++ b/dexs/raydium/index.ts @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = { fetch: graphs, // runAtCurrTime: true, customBackfill: undefined, - start: async () => 1660521600, + start: 1660521600, }, // TODO custom backfill }, diff --git a/dexs/reax-one-dex/index.ts b/dexs/reax-one-dex/index.ts index 42bd390867..392352c72c 100644 --- a/dexs/reax-one-dex/index.ts +++ b/dexs/reax-one-dex/index.ts @@ -30,7 +30,7 @@ const adapter: SimpleAdapter = { [chain]: { fetch: graphs(chain as Chain), customBackfill: customBackfill(chain as Chain, graphs), - start: async () => 1689638400, + start: 1689638400, } } }, {}) diff --git a/dexs/retro/index.ts b/dexs/retro/index.ts index b4243c197b..38797f1c8b 100644 --- a/dexs/retro/index.ts +++ b/dexs/retro/index.ts @@ -30,7 +30,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.POLYGON]: { fetch: v3Graphs(CHAIN.POLYGON), - start: async () => 1688256000, + start: 1688256000, } } } diff --git a/dexs/rollup-finace/index.ts b/dexs/rollup-finace/index.ts index 51a391c699..e54ab18b66 100644 --- a/dexs/rollup-finace/index.ts +++ b/dexs/rollup-finace/index.ts @@ -64,13 +64,9 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.ERA]: 1682035200, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.ERA]: 1682035200, } - const adapter: BreakdownAdapter = { breakdown: { // "swap": Object.keys(endpoints).reduce((acc, chain) => { @@ -78,7 +74,7 @@ const adapter: BreakdownAdapter = { // ...acc, // [chain]: { // fetch: getFetch(historicalDataSwap)(chain), - // start: async () => getStartTimestamp(chain) + // start: startTimestamps[chain] // } // } // }, {}), @@ -87,7 +83,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}) diff --git a/dexs/ryze/index.ts b/dexs/ryze/index.ts index ee914b981c..ab9c868604 100644 --- a/dexs/ryze/index.ts +++ b/dexs/ryze/index.ts @@ -68,7 +68,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: v2Graphs(chain), - start: async () => 1689974616, + start: 1689974616, } } }, {}) diff --git a/dexs/saber/index.ts b/dexs/saber/index.ts index baf39353be..d8120e877c 100644 --- a/dexs/saber/index.ts +++ b/dexs/saber/index.ts @@ -21,7 +21,7 @@ export default { "solana": { fetch: last24h, runAtCurrTime: true, - start: async () => 0, + start: 0, } } } diff --git a/dexs/saddle-finance/index.ts b/dexs/saddle-finance/index.ts index dada37d47f..d952a8cc8b 100644 --- a/dexs/saddle-finance/index.ts +++ b/dexs/saddle-finance/index.ts @@ -25,11 +25,11 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graphs(CHAIN.ARBITRUM), - start: async () => 1659750817, + start: 1659750817, }, [CHAIN.ETHEREUM]: { fetch: graphs(CHAIN.ETHEREUM), - start: async () => 1628128417, + start: 1628128417, }, }, }; diff --git a/dexs/sanctum/index.ts b/dexs/sanctum/index.ts index ad8c9984e1..df88ae95f8 100644 --- a/dexs/sanctum/index.ts +++ b/dexs/sanctum/index.ts @@ -23,7 +23,7 @@ const adapter: SimpleAdapter = { adapter: { solana: { fetch, - start: async () => 1657756800, + start: 1657756800, }, }, }; diff --git a/dexs/saros/index.ts b/dexs/saros/index.ts index 5544f62d9c..c14d03dd2f 100644 --- a/dexs/saros/index.ts +++ b/dexs/saros/index.ts @@ -32,7 +32,7 @@ const adapter: SimpleAdapter = { fetch: graphs(CHAIN.SOLANA), runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, }, }; diff --git a/dexs/satori/index.ts b/dexs/satori/index.ts index b53cfaa1ea..b0f0c467a1 100644 --- a/dexs/satori/index.ts +++ b/dexs/satori/index.ts @@ -80,22 +80,22 @@ const adapter: SimpleAdapter = { [CHAIN.POLYGON_ZKEVM]: { fetch:evm_fetch, runAtCurrTime: true, - start: async () => 1684003134, + start: 1684003134, }, [CHAIN.ERA]: { fetch:era_fetch, runAtCurrTime: true, - start: async () => 1684003134, + start: 1684003134, }, [CHAIN.LINEA]: { fetch:linea_fetch, runAtCurrTime: true, - start: async () => 1684003134, + start: 1684003134, }, [CHAIN.SCROLL]: { fetch:scroll_fetch, runAtCurrTime: true, - start: async () => 1684003134, + start: 1684003134, } }, }; diff --git a/dexs/saucerswap/index.ts b/dexs/saucerswap/index.ts index 0b64063c95..ac7f6d6fdb 100644 --- a/dexs/saucerswap/index.ts +++ b/dexs/saucerswap/index.ts @@ -39,7 +39,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.HEDERA]: { fetch, - start: async () => 1659571200, + start: 1659571200, }, }, }; diff --git a/dexs/shell-protocol/index.ts b/dexs/shell-protocol/index.ts index c174177527..e2b7cdd1cc 100644 --- a/dexs/shell-protocol/index.ts +++ b/dexs/shell-protocol/index.ts @@ -79,7 +79,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch, - start: async () => 1667260800, + start: 1667260800, }, } }; diff --git a/dexs/shimmersea/index.ts b/dexs/shimmersea/index.ts index a3eb562344..14cd66008e 100644 --- a/dexs/shimmersea/index.ts +++ b/dexs/shimmersea/index.ts @@ -32,7 +32,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: v3Graphs(chain), - start: async () => 1696377600, + start: 1696377600, } } }, {}) diff --git a/dexs/sithswap/index.ts b/dexs/sithswap/index.ts index 48747cb135..954ddf308d 100644 --- a/dexs/sithswap/index.ts +++ b/dexs/sithswap/index.ts @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.STARKNET]: { fetch: fetch, - start: async () => 1673308800, + start: 1673308800, }, }, }; diff --git a/dexs/slingshot/index.ts b/dexs/slingshot/index.ts index a9beb95fd6..58b71951db 100644 --- a/dexs/slingshot/index.ts +++ b/dexs/slingshot/index.ts @@ -100,27 +100,27 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetchVolume(CHAIN.ARBITRUM), - start: async () => 1683590400 + start: 1683590400 }, [CHAIN.ETHEREUM]: { fetch: fetchVolume(CHAIN.ETHEREUM), - start: async () => 1683590400 + start: 1683590400 }, [CHAIN.POLYGON]: { fetch: fetchVolume(CHAIN.POLYGON), - start: async () => 1683590400 + start: 1683590400 }, [CHAIN.OPTIMISM]: { fetch: fetchVolume(CHAIN.OPTIMISM), - start: async () => 1683590400 + start: 1683590400 }, [CHAIN.BSC]: { fetch: fetchVolume(CHAIN.BSC), - start: async () => 1683590400 + start: 1683590400 }, [CHAIN.CANTO]: { fetch: fetchVolume(CHAIN.CANTO), - start: async () => 1683590400 + start: 1683590400 } } } diff --git a/dexs/sobal/index.ts b/dexs/sobal/index.ts index 01e7c0eaad..94deb2599f 100644 --- a/dexs/sobal/index.ts +++ b/dexs/sobal/index.ts @@ -26,12 +26,12 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.NEON]: { fetch: graphs(CHAIN.NEON), - start: async () => 1689613200, // 17TH JULY 5PM GMT + start: 1689613200, // 17TH JULY 5PM GMT customBackfill: customBackfill(CHAIN.NEON as Chain, graphs), }, [CHAIN.BASE]: { fetch: graphs(CHAIN.BASE), - start: async () => 1690850000, // 1ST AUG 12:33 AM GMT + start: 1690850000, // 1ST AUG 12:33 AM GMT customBackfill: customBackfill(CHAIN.BASE as Chain, graphs), } } diff --git a/dexs/solidly/index.ts b/dexs/solidly/index.ts index 5750242b48..b7400eda0d 100644 --- a/dexs/solidly/index.ts +++ b/dexs/solidly/index.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch: getDexVolumeExports({ chain: CHAIN.FANTOM, factory: FACTORY_ADDRESS,}), - start: async () => 1644462536, + start: 1644462536, }, } }; diff --git a/dexs/spacedex/index.ts b/dexs/spacedex/index.ts index 044e56c569..173bb443fc 100644 --- a/dexs/spacedex/index.ts +++ b/dexs/spacedex/index.ts @@ -60,12 +60,9 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.ARBITRUM]: 1680480000, - [CHAIN.BSC]: 1678406400, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.ARBITRUM]: 1680480000, + [CHAIN.BSC]: 1678406400, } const adapter: BreakdownAdapter = { @@ -75,7 +72,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataSwap)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}), @@ -84,7 +81,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: getFetch(historicalDataDerivatives)(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] } } }, {}) diff --git a/dexs/spartan/index.ts b/dexs/spartan/index.ts index f0f032f679..f40f303357 100644 --- a/dexs/spartan/index.ts +++ b/dexs/spartan/index.ts @@ -45,7 +45,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: fetch, - start: async () => 1633305600, + start: 1633305600, customBackfill: customBackfill(CHAIN.BSC as Chain, () => fetch) }, }, diff --git a/dexs/spectrum/index.ts b/dexs/spectrum/index.ts index f43b619135..bd1646b2a6 100644 --- a/dexs/spectrum/index.ts +++ b/dexs/spectrum/index.ts @@ -40,12 +40,12 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.CARDANO]: { fetch: fetchVolumeADA, - start: async () => 1697068800, + start: 1697068800, runAtCurrTime: true, }, [CHAIN.ERGO]: { fetch: fetchVolumeERGO, - start: async () => 1697068800, + start: 1697068800, runAtCurrTime: true, } } diff --git a/dexs/spicyswap/index.ts b/dexs/spicyswap/index.ts index a229398fdb..b1c414604f 100644 --- a/dexs/spicyswap/index.ts +++ b/dexs/spicyswap/index.ts @@ -23,7 +23,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.TEZOS]: { fetch: fetchVolume, - start: async () => 1688774400 + start: 1688774400 } } } diff --git a/dexs/spiritswap/index.ts b/dexs/spiritswap/index.ts index 0e3168c6d7..deacfecce3 100644 --- a/dexs/spiritswap/index.ts +++ b/dexs/spiritswap/index.ts @@ -28,7 +28,7 @@ const adapter: SimpleAdapter = { adapter: { fantom: { fetch: graphs("fantom"), - start: async () => 1620864000, + start: 1620864000, }, }, }; diff --git a/dexs/squadswap-v2/index.ts b/dexs/squadswap-v2/index.ts index 0141fa0a29..60c6843f9f 100644 --- a/dexs/squadswap-v2/index.ts +++ b/dexs/squadswap-v2/index.ts @@ -32,7 +32,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: v2Graph(CHAIN.BSC), - start: async () => 1702339200 + start: 1702339200 }, }, }; diff --git a/dexs/squadswap-v3/index.ts b/dexs/squadswap-v3/index.ts index f0491d0c69..c65dd3f019 100644 --- a/dexs/squadswap-v3/index.ts +++ b/dexs/squadswap-v3/index.ts @@ -36,7 +36,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: v3Graphs(CHAIN.BSC), - start: async () => 1704758400 + start: 1704758400 }, }, }; diff --git a/dexs/stormtrade/index.ts b/dexs/stormtrade/index.ts index 6178cd9dda..55f5ece667 100644 --- a/dexs/stormtrade/index.ts +++ b/dexs/stormtrade/index.ts @@ -6,7 +6,7 @@ export default { adapter: { [CHAIN.TON]: { runAtCurrTime: true, - start: async () => 1700000000, + start: 1700000000, meta: { methodology: { DailyVolume: 'Leverage trading volume', diff --git a/dexs/sundaeswap/index.ts b/dexs/sundaeswap/index.ts index d5ee3ce881..c4d15ecd95 100644 --- a/dexs/sundaeswap/index.ts +++ b/dexs/sundaeswap/index.ts @@ -35,7 +35,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.CARDANO]: { fetch, - start: async () => 1643673600, + start: 1643673600, }, }, }; diff --git a/dexs/sunswap-v2/index.ts b/dexs/sunswap-v2/index.ts index f0cd917ac2..75784b3313 100644 --- a/dexs/sunswap-v2/index.ts +++ b/dexs/sunswap-v2/index.ts @@ -34,7 +34,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.TRON]: { fetch, - start: async () => 1639440000, + start: 1639440000, }, }, }; diff --git a/dexs/sunswap-v3/index.ts b/dexs/sunswap-v3/index.ts index 7c58f803f1..248c46310c 100644 --- a/dexs/sunswap-v3/index.ts +++ b/dexs/sunswap-v3/index.ts @@ -25,7 +25,7 @@ const fetchVolume = async (timestamp: number): Promise => { const adapters: SimpleAdapter = { adapter: { [CHAIN.TRON]: { - start: async () => 1702684800, + start: 1702684800, fetch: fetchVolume, } } diff --git a/dexs/surfone/index.ts b/dexs/surfone/index.ts index 9fc4a49aab..976330866a 100644 --- a/dexs/surfone/index.ts +++ b/dexs/surfone/index.ts @@ -35,7 +35,7 @@ const adapter: SimpleAdapter = { [CHAIN.BASE]: { fetch: fetch(), runAtCurrTime: true, - start: async () => 7963804, + start: 7963804, } }, }; diff --git a/dexs/surfswap/index.ts b/dexs/surfswap/index.ts index f5b936967b..661b7f624a 100644 --- a/dexs/surfswap/index.ts +++ b/dexs/surfswap/index.ts @@ -71,13 +71,13 @@ const adapter: BreakdownAdapter = { classic: { [CHAIN.KAVA]: { fetch: graphs(CHAIN.KAVA as Chain), - start: async () => 1659715200, + start: 1659715200, }, }, "stable-amm": { [CHAIN.KAVA]: { fetch: v1graphs(CHAIN.KAVA as Chain), - start: async () => 1656547200, + start: 1656547200, }, }, } diff --git a/dexs/sushiswap/v3.ts b/dexs/sushiswap/v3.ts index 907a0fcc70..a0cce49c6d 100644 --- a/dexs/sushiswap/v3.ts +++ b/dexs/sushiswap/v3.ts @@ -63,7 +63,7 @@ const v3 = Object.keys(endpointsV3).reduce( ...acc, [chain]: { fetch: v3Graphs(chain as Chain), - start: async () => startTimeV3[chain], + start: startTimeV3[chain], meta: { methodology: { Fees: "Each pool charge between 0.01% to 1% fee", diff --git a/dexs/swaap/index.ts b/dexs/swaap/index.ts index b171a79229..226e586837 100644 --- a/dexs/swaap/index.ts +++ b/dexs/swaap/index.ts @@ -116,7 +116,7 @@ const adapterV2: BaseAdapter = Object.keys(config).reduce((acc, chain) => { ...acc, [chain]: { fetch: v2graphs(chain), - start: async () => config[chain].start, + start: config[chain].start, runAtCurrTime: false, meta: { methodology: 'Comparing total volume of the current day with the total volume of the previous day, using TheGraph.' @@ -147,7 +147,7 @@ const adapter: BreakdownAdapter = { v1: { [CHAIN.POLYGON]: { fetch: v1graphs(CHAIN.POLYGON), - start: async () => 1655195452, + start: 1655195452, customBackfill: customBackfill(CHAIN.POLYGON, v1graphs) }, }, diff --git a/dexs/swapbased/index.ts b/dexs/swapbased/index.ts index f7a8ee7ef4..3e18398fb6 100644 --- a/dexs/swapbased/index.ts +++ b/dexs/swapbased/index.ts @@ -142,7 +142,7 @@ const adapter: BreakdownAdapter = { v2: { [CHAIN.BASE]: { fetch: graphs(CHAIN.BASE), - start: async () => 1690495200, + start: 1690495200, customBackfill: customBackfill(CHAIN.BASE, graphs), meta: { methodology }, } @@ -150,13 +150,13 @@ const adapter: BreakdownAdapter = { v3: { [CHAIN.BASE]: { fetch: graphsV3(CHAIN.BASE), - start: async () => 1690443269, + start: 1690443269, } }, perps: { [CHAIN.BASE]: { fetch: getFetch(historicalDataSwap)(CHAIN.BASE), - start: async () => 1688913853, + start: 1688913853, } } }, diff --git a/dexs/swapline/index.ts b/dexs/swapline/index.ts index b5ff66fb00..f2d7958965 100644 --- a/dexs/swapline/index.ts +++ b/dexs/swapline/index.ts @@ -36,19 +36,19 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch: graph(250), - start: async () => 1680048000, + start: 1680048000, }, [CHAIN.OPTIMISM]: { fetch: graph(10), - start: async () => 1680048000, + start: 1680048000, }, [CHAIN.ARBITRUM]: { fetch: graph(42161), - start: async () => 1680048000, + start: 1680048000, }, [CHAIN.SHIMMER_EVM]: { fetch: graph(148), - start: async () => 1680048000, + start: 1680048000, }, }, }; diff --git a/dexs/synfutures-v2/index.ts b/dexs/synfutures-v2/index.ts index 2762700386..1b9b919e4d 100644 --- a/dexs/synfutures-v2/index.ts +++ b/dexs/synfutures-v2/index.ts @@ -135,7 +135,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.POLYGON]: { fetch: fetchVolume(CHAIN.POLYGON), - start: async () => 1662595200 + start: 1662595200 } } } diff --git a/dexs/synfutures/index.ts b/dexs/synfutures/index.ts index 9665956fa2..22d6b358f6 100644 --- a/dexs/synfutures/index.ts +++ b/dexs/synfutures/index.ts @@ -71,19 +71,19 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON), - start: async () => 1628128417, + start: 1628128417, }, [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1659750817, + start: 1659750817, }, [CHAIN.ETHEREUM]: { fetch: fetch(CHAIN.ETHEREUM), - start: async () => 1628128417, + start: 1628128417, }, [CHAIN.BSC]: { fetch: fetch(CHAIN.BSC), - start: async () => 1628128417, + start: 1628128417, }, }, }; diff --git a/dexs/synthetix/index.ts b/dexs/synthetix/index.ts index 47ef0a3415..d41de05df4 100644 --- a/dexs/synthetix/index.ts +++ b/dexs/synthetix/index.ts @@ -117,7 +117,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetchVolume, - start: async () => 1682121600, + start: 1682121600, }, } }; diff --git a/dexs/syrup-finance/index.ts b/dexs/syrup-finance/index.ts index c8c06602ff..35e633ea7b 100644 --- a/dexs/syrup-finance/index.ts +++ b/dexs/syrup-finance/index.ts @@ -51,20 +51,16 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.BSC]: 1672358400, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.BSC]: 1672358400, } - const adapter: SimpleAdapter = { adapter: { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.BSC]: { fetch: getFetch(historicalDataSwap)(CHAIN.BSC), - start: async () => getStartTimestamp(CHAIN.BSC), + start: startTimestamps[CHAIN.BSC], }, }, }; diff --git a/dexs/tangleswap/index.ts b/dexs/tangleswap/index.ts index 32bd4b48bd..d4bb141392 100644 --- a/dexs/tangleswap/index.ts +++ b/dexs/tangleswap/index.ts @@ -29,7 +29,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: v3Graphs(chain), - start: async () => 1696377600, + start: 1696377600, } } }, {}) diff --git a/dexs/tealswap/index.ts b/dexs/tealswap/index.ts index e311d306de..cc7890a159 100644 --- a/dexs/tealswap/index.ts +++ b/dexs/tealswap/index.ts @@ -43,7 +43,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.OAS]: { fetch, - start: async () => 1671030000, + start: 1671030000, }, }, }; diff --git a/dexs/templedao-trade/index.ts b/dexs/templedao-trade/index.ts index c32985156c..a09339c6c0 100644 --- a/dexs/templedao-trade/index.ts +++ b/dexs/templedao-trade/index.ts @@ -27,7 +27,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: graphs(chain as Chain), - start: async () => 1655003840, + start: 1655003840, customBackfill: customBackfill(chain as Chain, graphs) } } diff --git a/dexs/thalaswap/index.ts b/dexs/thalaswap/index.ts index 8a5196f717..b860e2f6f5 100644 --- a/dexs/thalaswap/index.ts +++ b/dexs/thalaswap/index.ts @@ -51,7 +51,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.APTOS]: { fetch, - start: async () => 1680652406 + start: 1680652406 }, }, }; diff --git a/dexs/thena-perp/index.ts b/dexs/thena-perp/index.ts index c1bf075254..4d9e3939e9 100644 --- a/dexs/thena-perp/index.ts +++ b/dexs/thena-perp/index.ts @@ -83,7 +83,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: fetchVolume, - start: async () => 1702892400 + start: 1702892400 } } } diff --git a/dexs/thick/index.ts b/dexs/thick/index.ts index 004e3134cb..1388ee5cdb 100644 --- a/dexs/thick/index.ts +++ b/dexs/thick/index.ts @@ -15,17 +15,17 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 70309749, chain: CHAIN.FANTOM, }), - start: async () => 1699300000, + start: 1699300000, meta: { methodology: { ...methodology, } }, }, [CHAIN.ARBITRUM]: { fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 148243463, chain: CHAIN.ARBITRUM, }), - start: async () => 1699300000, + start: 1699300000, meta: { methodology: { ...methodology, } }, }, [CHAIN.BASE]: { fetch: getDexVolumeExportsV3({ factory: poolFactoryAddress, factoryFromBlock: 6314325, chain: CHAIN.BASE, }), - start: async () => 1699300000, + start: 1699300000, meta: { methodology: { ...methodology, } }, } } diff --git a/dexs/thorswap/index.ts b/dexs/thorswap/index.ts index 37febec09a..9e4289e3cb 100644 --- a/dexs/thorswap/index.ts +++ b/dexs/thorswap/index.ts @@ -45,7 +45,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.THORCHAIN]: { fetch, - start: async () => 1662508800, + start: 1662508800, }, }, }; diff --git a/dexs/throne-v3/index.ts b/dexs/throne-v3/index.ts index 1b8d189124..2df22f6b8c 100644 --- a/dexs/throne-v3/index.ts +++ b/dexs/throne-v3/index.ts @@ -36,7 +36,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch: v3Graph(CHAIN.BASE), - start: async () => v3StartTimes[CHAIN.BASE] + start: v3StartTimes[CHAIN.BASE] }, }, }; diff --git a/dexs/tigris/index.ts b/dexs/tigris/index.ts index b172c91091..1c9a437aec 100644 --- a/dexs/tigris/index.ts +++ b/dexs/tigris/index.ts @@ -81,11 +81,11 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1663023600, + start: 1663023600, }, [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON), - start: async () => 1663023600, + start: 1663023600, } } } diff --git a/dexs/tinyman/index.ts b/dexs/tinyman/index.ts index 6673074583..c7702f8e7b 100644 --- a/dexs/tinyman/index.ts +++ b/dexs/tinyman/index.ts @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, } }; diff --git a/dexs/tokenlon/index.ts b/dexs/tokenlon/index.ts index 30a9a5b0f0..c0e3ed9197 100644 --- a/dexs/tokenlon/index.ts +++ b/dexs/tokenlon/index.ts @@ -64,7 +64,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchVolume(CHAIN.ETHEREUM), - start: async () => 1608216488, + start: 1608216488, }, }, }; diff --git a/dexs/traderjoe/index.ts b/dexs/traderjoe/index.ts index b9d931f3b9..d50cdf96fc 100644 --- a/dexs/traderjoe/index.ts +++ b/dexs/traderjoe/index.ts @@ -72,29 +72,29 @@ const adapter: BreakdownAdapter = { v1: { [CHAIN.AVAX]: { fetch: graphsV1(CHAIN.AVAX), - start: async () => 1628467200, + start: 1628467200, }, [CHAIN.BSC]: { fetch: graphsV1(CHAIN.BSC), - start: async () => 1664841600, + start: 1664841600, }, [CHAIN.ARBITRUM]: { fetch: graphsV1(CHAIN.ARBITRUM), - start: async () => 1664841600, + start: 1664841600, }, }, v2: { [CHAIN.AVAX]: { fetch: graphsV2(CHAIN.AVAX), - start: async () => 1668556800 + start: 1668556800 }, [CHAIN.ARBITRUM]: { fetch: fetchV2(CHAIN.ARBITRUM), - start: async () => 1672012800 + start: 1672012800 }, [CHAIN.BSC]: { fetch: fetchV2(CHAIN.BSC), - start: async () => 1677801600 + start: 1677801600 }, } }, diff --git a/dexs/trisolaris/index.ts b/dexs/trisolaris/index.ts index a1b6f3a569..2c9001ec69 100644 --- a/dexs/trisolaris/index.ts +++ b/dexs/trisolaris/index.ts @@ -21,7 +21,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.AURORA]: { fetch: getDexVolumeExports({ chain: CHAIN.AURORA, pools }), - start: async () => 1678838400, + start: 1678838400, } } } diff --git a/dexs/ttswap/index.ts b/dexs/ttswap/index.ts index 6b1c838fd0..eed1d535f4 100644 --- a/dexs/ttswap/index.ts +++ b/dexs/ttswap/index.ts @@ -23,7 +23,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.THUNDERCORE]: { fetch, - start: async () => 1673308800, + start: 1673308800, runAtCurrTime: true }, }, diff --git a/dexs/turbos/index.ts b/dexs/turbos/index.ts index 75fd94fa66..84789fcfec 100644 --- a/dexs/turbos/index.ts +++ b/dexs/turbos/index.ts @@ -40,7 +40,7 @@ const adapter: SimpleAdapter = { [CHAIN.SUI]: { fetch: fetch(CHAIN.SUI), runAtCurrTime: true, - start: async () => 1697241600, + start: 1697241600, } }, }; diff --git a/dexs/unidex/index.ts b/dexs/unidex/index.ts index 67293f3765..ae5d159a9f 100644 --- a/dexs/unidex/index.ts +++ b/dexs/unidex/index.ts @@ -66,49 +66,49 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1687422746, + start: 1687422746, meta: { methodology, }, }, [CHAIN.ERA]: { fetch: fetch(CHAIN.ERA), - start: async () => 1687422746, + start: 1687422746, meta: { methodology, }, }, [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1687422746, + start: 1687422746, meta: { methodology, }, }, [CHAIN.BASE]: { fetch: fetch(CHAIN.BASE), - start: async () => 1687422746, + start: 1687422746, meta: { methodology, }, }, [CHAIN.FANTOM]: { fetch: fetch(CHAIN.FANTOM), - start: async () => 1687422746, + start: 1687422746, meta: { methodology, }, }, [CHAIN.METIS]: { fetch: fetch(CHAIN.METIS), - start: async () => 1687898060, + start: 1687898060, meta: { methodology, }, }, [CHAIN.EVMOS]: { fetch: fetch(CHAIN.EVMOS), - start: async () => 1700104066, + start: 1700104066, meta: { methodology, }, diff --git a/dexs/vapordex/v2.ts b/dexs/vapordex/v2.ts index 876a310c75..5bab677215 100644 --- a/dexs/vapordex/v2.ts +++ b/dexs/vapordex/v2.ts @@ -40,7 +40,7 @@ const v2 = Object.keys(endpointsV2).reduce( ...acc, [chain]: { fetch: v2Graphs(chain as Chain), - start: async () => startTimeV2[chain], + start: startTimeV2[chain], }, }), {} diff --git a/dexs/veax/index.ts b/dexs/veax/index.ts index 976d07beb1..197d9171d9 100644 --- a/dexs/veax/index.ts +++ b/dexs/veax/index.ts @@ -30,7 +30,7 @@ const rpc = (url: string, method: string, params: any) => const adapter: SimpleAdapter = { adapter: { near: { - start: async () => 1682607600, + start: 1682607600, fetch: async (ts) => { const data = await rpc(POOLS_SERVICE_URL, 'volumes_statistic', { timestamp: ts, diff --git a/dexs/vela/index.ts b/dexs/vela/index.ts index 214365738e..cd0d7885ab 100644 --- a/dexs/vela/index.ts +++ b/dexs/vela/index.ts @@ -44,11 +44,11 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graphs(endpoints)(CHAIN.ARBITRUM), - start: async () => 1687806000, + start: 1687806000, }, [CHAIN.BASE]: { fetch: graphs(endpoints)(CHAIN.BASE), - start: async () => 1693785600 + start: 1693785600 } }, }; diff --git a/dexs/velocimeter-v2/index.ts b/dexs/velocimeter-v2/index.ts index 7604316640..5337e6c9af 100644 --- a/dexs/velocimeter-v2/index.ts +++ b/dexs/velocimeter-v2/index.ts @@ -9,7 +9,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.CANTO]: { fetch: getDexVolumeExports({ chain: CHAIN.CANTO, factory: FACTORY_ADDRESS }), - start: async () => 1678512026, // when PairFactory was created https://tuber.build/address/0xF80909DF0A01ff18e4D37BF682E40519B21Def46 + start: 1678512026, // when PairFactory was created https://tuber.build/address/0xF80909DF0A01ff18e4D37BF682E40519B21Def46 }, }, } diff --git a/dexs/velocore-v2/index.ts b/dexs/velocore-v2/index.ts index f25954148e..878f780873 100644 --- a/dexs/velocore-v2/index.ts +++ b/dexs/velocore-v2/index.ts @@ -58,7 +58,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.LINEA]: { fetch, - start: async () => 1690876967, + start: 1690876967, }, } }; diff --git a/dexs/velodrome-v2/index.ts b/dexs/velodrome-v2/index.ts index 313645844a..8c79069e2b 100644 --- a/dexs/velodrome-v2/index.ts +++ b/dexs/velodrome-v2/index.ts @@ -19,7 +19,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1677110400 + start: 1677110400 }, }, }; diff --git a/dexs/velodrome/index.ts b/dexs/velodrome/index.ts index f761dc1e71..79619e8d73 100644 --- a/dexs/velodrome/index.ts +++ b/dexs/velodrome/index.ts @@ -34,7 +34,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1677110400 + start: 1677110400 }, }, }; diff --git a/dexs/verse/index.ts b/dexs/verse/index.ts index bb1a7b0a03..b293ad6bf0 100644 --- a/dexs/verse/index.ts +++ b/dexs/verse/index.ts @@ -22,11 +22,11 @@ const fetch = getChainVolume({ const volumeAdapter: BaseAdapter = { [CHAIN.ETHEREUM]: { fetch: fetch(CHAIN.ETHEREUM), - start: async () => 1655164800, + start: 1655164800, }, [CHAIN.SMARTBCH]: { fetch: fetch(CHAIN.SMARTBCH), - start: async () => 1646697600, + start: 1646697600, }, } diff --git a/dexs/vertex-protocol/index.ts b/dexs/vertex-protocol/index.ts index 2c8af0755d..2ea7482b6c 100644 --- a/dexs/vertex-protocol/index.ts +++ b/dexs/vertex-protocol/index.ts @@ -98,13 +98,13 @@ const adapter: BreakdownAdapter = { swap: { [CHAIN.ARBITRUM]: { fetch: fetchSpots, - start: async () => startTime, + start: startTime, }, }, derivatives: { [CHAIN.ARBITRUM]: { fetch: fetchPerps, - start: async () => startTime, + start: startTime, }, }, }, diff --git a/dexs/vexchange/index.ts b/dexs/vexchange/index.ts index a14ae622b7..70f7ff2a5e 100644 --- a/dexs/vexchange/index.ts +++ b/dexs/vexchange/index.ts @@ -33,7 +33,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.VECHAIN]: { fetch, - start: async () => 1673827200, + start: 1673827200, runAtCurrTime: true }, }, diff --git a/dexs/vortex-protocol/index.ts b/dexs/vortex-protocol/index.ts index e883245091..652c01ec30 100644 --- a/dexs/vortex-protocol/index.ts +++ b/dexs/vortex-protocol/index.ts @@ -54,7 +54,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.TEZOS]: { fetch: fetch, - start: async () => START_TIME, + start: START_TIME, customBackfill: customBackfill(CHAIN.TEZOS as Chain, () => fetch) }, }, diff --git a/dexs/wagmi/index.ts b/dexs/wagmi/index.ts index 9441ab3b38..56881a4f23 100644 --- a/dexs/wagmi/index.ts +++ b/dexs/wagmi/index.ts @@ -6,23 +6,23 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ERA]: { fetch: fetchVolume(CHAIN.ERA), - start: async () => 1681257600, + start: 1681257600, }, [CHAIN.FANTOM]: { fetch: fetchVolume(CHAIN.FANTOM), - start: async () => 1681257600, + start: 1681257600, }, [CHAIN.ETHEREUM]: { fetch: fetchVolume(CHAIN.ETHEREUM), - start: async () => 18240112, + start: 18240112, }, [CHAIN.METIS]: { fetch: fetchVolume(CHAIN.METIS), - start: async () => 1702888970, + start: 1702888970, }, [CHAIN.KAVA]: { fetch: fetchVolume(CHAIN.KAVA), - start: async () => 1694476800, + start: 1694476800, }, }, }; diff --git a/dexs/wannaswap/index.ts b/dexs/wannaswap/index.ts index 337295b7c6..bb9d560516 100644 --- a/dexs/wannaswap/index.ts +++ b/dexs/wannaswap/index.ts @@ -26,7 +26,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.AURORA]: { fetch: getDexVolumeExports({ chain: CHAIN.AURORA, pools }), - start: async () => 1678838400, + start: 1678838400, } } } diff --git a/dexs/wardenswap/index.ts b/dexs/wardenswap/index.ts index a2bbeb6e99..e547013e41 100644 --- a/dexs/wardenswap/index.ts +++ b/dexs/wardenswap/index.ts @@ -35,7 +35,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: graphs(chain as Chain), - start: async () => 1657443314 + start: 1657443314 } } }, {}) diff --git a/dexs/wavelength-dao/index.ts b/dexs/wavelength-dao/index.ts index f5b67b46bc..48c426ec91 100644 --- a/dexs/wavelength-dao/index.ts +++ b/dexs/wavelength-dao/index.ts @@ -52,7 +52,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.VELAS]: { fetch: graphs(CHAIN.VELAS), - start: async () => 1666263553, + start: 1666263553, customBackfill: customBackfill(CHAIN.VELAS, graphs as unknown as IGraphs) }, }, diff --git a/dexs/wemix.fi/index.ts b/dexs/wemix.fi/index.ts index 2af1db0ce3..c240eaa566 100644 --- a/dexs/wemix.fi/index.ts +++ b/dexs/wemix.fi/index.ts @@ -33,7 +33,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.WEMIX]: { fetch, - start: async () => 1676937600, + start: 1676937600, }, }, }; diff --git a/dexs/wingriders/index.ts b/dexs/wingriders/index.ts index ba8f0ede0d..83efe3f211 100644 --- a/dexs/wingriders/index.ts +++ b/dexs/wingriders/index.ts @@ -29,7 +29,7 @@ export default { [CHAIN.CARDANO]: { fetch: fetchVolume, runAtCurrTime: true, - start: async () => 0, + start: 0, } } } as Adapter diff --git a/dexs/wojak-finance/index.ts b/dexs/wojak-finance/index.ts index d5ff408260..b556b6a315 100644 --- a/dexs/wojak-finance/index.ts +++ b/dexs/wojak-finance/index.ts @@ -65,7 +65,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.DOGECHAIN]: { fetch: graphs(CHAIN.DOGECHAIN), - start: async () => 1661731200, + start: 1661731200, }, }, }; diff --git a/dexs/wombat-exchange/index.ts b/dexs/wombat-exchange/index.ts index fc168b612b..19c772fb80 100644 --- a/dexs/wombat-exchange/index.ts +++ b/dexs/wombat-exchange/index.ts @@ -74,31 +74,31 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: fetchVolume(CHAIN.BSC), - start: async () => 1650243600, + start: 1650243600, }, [CHAIN.ARBITRUM]: { fetch: fetchVolume(CHAIN.ARBITRUM), - start: async () => 1679809928, + start: 1679809928, }, [CHAIN.ETHEREUM]: { fetch: fetchVolume(CHAIN.ETHEREUM), - start: async () => 1691290453, + start: 1691290453, }, [CHAIN.SCROLL]: { fetch: fetchVolume(CHAIN.SCROLL), - start: async () => 1697417581, + start: 1697417581, }, [CHAIN.AVAX]: { fetch: fetchVolume(CHAIN.AVAX), - start: async () => 1697493603, + start: 1697493603, }, [CHAIN.BASE]: { fetch: fetchVolume(CHAIN.BASE), - start: async () => 1697486905, + start: 1697486905, }, [CHAIN.OPTIMISM]: { fetch: fetchVolume(CHAIN.OPTIMISM), - start: async () => 1700173545, + start: 1700173545, }, }, }; diff --git a/dexs/woofi/index.ts b/dexs/woofi/index.ts index e1f0c61561..ed2071f30a 100644 --- a/dexs/woofi/index.ts +++ b/dexs/woofi/index.ts @@ -71,7 +71,7 @@ const volume = Object.keys(endpoints).reduce( ...acc, [chain]: { fetch: fetch(chain), - start: async () => startTime[chain], + start: startTime[chain], }, }), {} diff --git a/dexs/wx.network/index.ts b/dexs/wx.network/index.ts index bca4762612..0894cbc8ca 100644 --- a/dexs/wx.network/index.ts +++ b/dexs/wx.network/index.ts @@ -32,7 +32,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 0, + start: 0, }, } }; diff --git a/dexs/xena-finance-derivative/index.ts b/dexs/xena-finance-derivative/index.ts index 512d9e9b9f..25047ba73f 100644 --- a/dexs/xena-finance-derivative/index.ts +++ b/dexs/xena-finance-derivative/index.ts @@ -49,19 +49,15 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.BASE]: 1696856400, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.BASE]: 1696856400, } - const adapter: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch: getFetch(historicalDataDerivatives)(CHAIN.BASE), - start: async () => getStartTimestamp(CHAIN.BASE), + start: startTimestamps[CHAIN.BASE], } }, }; diff --git a/dexs/xena-finance/index.ts b/dexs/xena-finance/index.ts index 199aafeaa1..6e2f7412d7 100644 --- a/dexs/xena-finance/index.ts +++ b/dexs/xena-finance/index.ts @@ -46,19 +46,15 @@ const getFetch = (query: string)=> (chain: string): Fetch => async (timestamp: n } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.BASE]: 1696856400, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.BASE]: 1696856400, } - const adapter: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch: getFetch(historicalDataSwap)(CHAIN.BASE), - start: async () => getStartTimestamp(CHAIN.BASE), + start: startTimestamps[CHAIN.BASE], } }, }; diff --git a/dexs/xexchange/index.ts b/dexs/xexchange/index.ts index b91ece2496..ddfca207c5 100644 --- a/dexs/xexchange/index.ts +++ b/dexs/xexchange/index.ts @@ -33,7 +33,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ELROND]: { fetch: fetch, - start: async () => 1664928000 + start: 1664928000 }, }, }; diff --git a/dexs/xfai/index.ts b/dexs/xfai/index.ts index 68a42be846..2544ac4510 100644 --- a/dexs/xfai/index.ts +++ b/dexs/xfai/index.ts @@ -50,7 +50,7 @@ const adapter: SimpleAdapter = { "Total fees are calculated by checking the token balances of the Xfai INFT", }, }, - start: async () => 1692347965, // Aug-18-2023 08:39:25 AM +UTC + start: 1692347965, // Aug-18-2023 08:39:25 AM +UTC }, }, }; diff --git a/dexs/xswap-protocol/index.ts b/dexs/xswap-protocol/index.ts index 6e77d97fc7..f00e3083c6 100644 --- a/dexs/xswap-protocol/index.ts +++ b/dexs/xswap-protocol/index.ts @@ -20,7 +20,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.XDC]: { fetch: graphs(CHAIN.XDC), - start: async () => 1647993600, + start: 1647993600, }, }, } diff --git a/dexs/y2k/index.ts b/dexs/y2k/index.ts index b841616e9c..aa08d87ea2 100644 --- a/dexs/y2k/index.ts +++ b/dexs/y2k/index.ts @@ -9,13 +9,13 @@ const adapter: Adapter = { v1: { [CHAIN.ARBITRUM]: { fetch: v1Fetch(CHAIN.ARBITRUM), - start: async () => 1667088000, + start: 1667088000, }, }, v2: { [CHAIN.ARBITRUM]: { fetch: v2Fetch, - start: async () => 1685404800, + start: 1685404800, }, }, }, diff --git a/dexs/yfx-v3/index.ts b/dexs/yfx-v3/index.ts index 7701775c52..819f59b1c0 100644 --- a/dexs/yfx-v3/index.ts +++ b/dexs/yfx-v3/index.ts @@ -71,20 +71,16 @@ const getFetch = (chain: string): Fetch => async (timestamp: number) => { } } -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.ARBITRUM]: 1691128800, - } - return startTimestamps[chain] +const startTimestamps: { [chain: string]: number } = { + [CHAIN.ARBITRUM]: 1691128800, } - const volume = chains.reduce( (acc, chain) => ({ ...acc, [chain]: { fetch: getFetch(chain), - start: async () => getStartTimestamp(chain) + start: startTimestamps[chain] }, }), {} diff --git a/dexs/zeta/index.ts b/dexs/zeta/index.ts index b7bc931f95..fa2217456c 100644 --- a/dexs/zeta/index.ts +++ b/dexs/zeta/index.ts @@ -19,7 +19,7 @@ const adapter = { [CHAIN.SOLANA]: { fetch: () => fetch(), runAtCurrTime: true, - start: async () => 1693497600, + start: 1693497600, }, }, }, diff --git a/dexs/zigzag/index.ts b/dexs/zigzag/index.ts index 6af7334263..3b08505d54 100644 --- a/dexs/zigzag/index.ts +++ b/dexs/zigzag/index.ts @@ -41,7 +41,7 @@ const adapter: SimpleAdapter = { fetch, runAtCurrTime: true, customBackfill: undefined, - start: async () => 1679443200, + start: 1679443200, }, } }; diff --git a/dexs/zilswap/index.ts b/dexs/zilswap/index.ts index d1e909baba..0e82bc33bc 100644 --- a/dexs/zilswap/index.ts +++ b/dexs/zilswap/index.ts @@ -31,7 +31,7 @@ const adapter: SimpleAdapter = { zilliqa: { fetch, runAtCurrTime: true, - start: async () => 1673049600, + start: 1673049600, }, }, }; diff --git a/dexs/zkSwap_Finance/index.ts b/dexs/zkSwap_Finance/index.ts index 51d42f1eac..c0798b126a 100644 --- a/dexs/zkSwap_Finance/index.ts +++ b/dexs/zkSwap_Finance/index.ts @@ -6,7 +6,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ERA]: { fetch: fetchVolume(CHAIN.ERA), - start: async () => 1684842780, + start: 1684842780, }, }, }; diff --git a/dexs/zkswap/index.ts b/dexs/zkswap/index.ts index 3a53c47416..481d6fc0db 100644 --- a/dexs/zkswap/index.ts +++ b/dexs/zkswap/index.ts @@ -36,7 +36,7 @@ const adapters: SimpleAdapter = { ...data }; }, - start: async () => 1700524800, + start: 1700524800, } } } diff --git a/dexs/zyberswap/index.ts b/dexs/zyberswap/index.ts index dabc33deca..ad4aa2b261 100644 --- a/dexs/zyberswap/index.ts +++ b/dexs/zyberswap/index.ts @@ -58,19 +58,19 @@ const adapter: BreakdownAdapter = { v2: { [CHAIN.ARBITRUM]: { fetch: graphs(CHAIN.ARBITRUM), - start: async () => 1674432000 + start: 1674432000 }, }, v3: { [CHAIN.ARBITRUM]: { fetch: graphsV3(CHAIN.ARBITRUM), - start: async () => 1676887200 + start: 1676887200 }, }, stable: { [CHAIN.ARBITRUM]: { fetch: graphsStable(CHAIN.ARBITRUM), - start: async () => 1676113200, + start: 1676113200, }, } }, diff --git a/fees/0vix.ts b/fees/0vix.ts index ec56c66c59..e58ffe6ea6 100644 --- a/fees/0vix.ts +++ b/fees/0vix.ts @@ -59,11 +59,11 @@ const adapter: Adapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.POLYGON]: { fetch: graphs(endpoints)(CHAIN.POLYGON), - start: async () => 1648157552, + start: 1648157552, }, // [CHAIN.POLYGON_ZKEVM]: { // fetch: graphs(endpoints)(CHAIN.POLYGON_ZKEVM), - // start: async () => 1679923169, + // start: 1679923169, // }, }, }; diff --git a/fees/0x0dex.ts b/fees/0x0dex.ts index 1934c12427..e0e39fa4a8 100644 --- a/fees/0x0dex.ts +++ b/fees/0x0dex.ts @@ -100,7 +100,7 @@ const adapter: Adapter = { [ETHEREUM]: { fetch, runAtCurrTime: true, - start: async () => 1685386800, + start: 1685386800, meta: { methodology: { Fees: "0x0 collects a 0.9% fee on deposits" diff --git a/fees/Scale.ts b/fees/Scale.ts index 6e36148e74..786d4660fa 100644 --- a/fees/Scale.ts +++ b/fees/Scale.ts @@ -274,7 +274,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch, - start: async () => 1695458888, + start: 1695458888, }, } }; diff --git a/fees/SmarDex/index.ts b/fees/SmarDex/index.ts index 1433223d92..ef54ac28e7 100644 --- a/fees/SmarDex/index.ts +++ b/fees/SmarDex/index.ts @@ -54,7 +54,7 @@ for (let chain in FEES) { adapter.adapter[chain] = { fetch: (timestamp: number) => feesFromSubgraph(timestamp, chain.toLocaleLowerCase()), - start: async () => CHAIN_STARTS[chain], + start: CHAIN_STARTS[chain], meta: { methodology }, }; } diff --git a/fees/abcdefx.ts b/fees/abcdefx.ts index 7b0d9693e4..e0fea66619 100644 --- a/fees/abcdefx.ts +++ b/fees/abcdefx.ts @@ -21,11 +21,11 @@ const methodology = { const adapter: SimpleAdapter = { adapter: { - [CHAIN.KCC]: { fetch: graph(CHAIN.KCC), start: async () => 1670188701, meta: { methodology } }, - //[CHAIN.MULTIVAC]: { fetch: graph(CHAIN.MULTIVAC), start: async () => 1670226950, meta: { methodology } }, /// ! typeof CHAIN - [CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), start: async () => 1671580916, meta: { methodology } }, - //[CHAIN.ECHELON]: { fetch: graph(CHAIN.ECHELON), start: async () => 1671608400, meta: { methodology } }, /// ded!? - [CHAIN.KAVA]: { fetch: graph(CHAIN.KAVA), start: async () => 1676855943, meta: { methodology } } + [CHAIN.KCC]: { fetch: graph(CHAIN.KCC), start: 1670188701, meta: { methodology } }, + //[CHAIN.MULTIVAC]: { fetch: graph(CHAIN.MULTIVAC), start: 1670226950, meta: { methodology } }, /// ! typeof CHAIN + [CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), start: 1671580916, meta: { methodology } }, + //[CHAIN.ECHELON]: { fetch: graph(CHAIN.ECHELON), start: 1671608400, meta: { methodology } }, /// ded!? + [CHAIN.KAVA]: { fetch: graph(CHAIN.KAVA), start: 1676855943, meta: { methodology } } } }; diff --git a/fees/across.ts b/fees/across.ts index 5cdd44c23c..c96d7348aa 100644 --- a/fees/across.ts +++ b/fees/across.ts @@ -308,19 +308,19 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: graph(CHAIN.ETHEREUM), - start: async () => 1682840443, + start: 1682840443, }, [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), - start: async () => 1682840443, + start: 1682840443, }, [CHAIN.OPTIMISM]: { fetch: graph(CHAIN.OPTIMISM), - start: async () => 1682840443, + start: 1682840443, }, [CHAIN.POLYGON]: { fetch: graph(CHAIN.POLYGON), - start: async () => 1682840443, + start: 1682840443, }, } }; diff --git a/fees/aerodrome/index.ts b/fees/aerodrome/index.ts index 4e6b4afbe2..8e0885154b 100644 --- a/fees/aerodrome/index.ts +++ b/fees/aerodrome/index.ts @@ -28,7 +28,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch: fetch, - start: async () => 1693180800, + start: 1693180800, } } } diff --git a/fees/aimbot.ts b/fees/aimbot.ts index a741ebf930..c20e8529f8 100644 --- a/fees/aimbot.ts +++ b/fees/aimbot.ts @@ -80,7 +80,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1690934400, + start: 1690934400, }, }, }; diff --git a/fees/airswap.ts b/fees/airswap.ts index 14fb71df89..cd17d63f79 100644 --- a/fees/airswap.ts +++ b/fees/airswap.ts @@ -85,23 +85,23 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: graph(CHAIN.ETHEREUM), - start: async () => 1680307200, + start: 1680307200, }, [CHAIN.POLYGON]: { fetch: graph(CHAIN.POLYGON), - start: async () => 1680307200, + start: 1680307200, }, [CHAIN.AVAX]: { fetch: graph(CHAIN.AVAX), - start: async () => 1680307200, + start: 1680307200, }, [CHAIN.BSC]: { fetch: graph(CHAIN.BSC), - start: async () => 1680307200, + start: 1680307200, }, [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), - start: async () => 1689811200, + start: 1689811200, }, } }; diff --git a/fees/alchemix.ts b/fees/alchemix.ts index 60877f5354..af47a6d286 100644 --- a/fees/alchemix.ts +++ b/fees/alchemix.ts @@ -76,15 +76,15 @@ const adapter: Adapter = { adapter: { // [CHAIN.ETHEREUM]: { // index error // fetch: graph(endpoints)(CHAIN.ETHEREUM), - // start: async () => 1669852800 + // start: 1669852800 // }, // [CHAIN.FANTOM]: { // fetch: graph(endpoints)(CHAIN.FANTOM), - // start: async () => 1669852800 + // start: 1669852800 // }, [CHAIN.OPTIMISM]: { fetch: graph(endpoints)(CHAIN.OPTIMISM), - start: async () => 1669852800 + start: 1669852800 } } } diff --git a/fees/allbridge-classic.ts b/fees/allbridge-classic.ts index 51bef08edf..ce44fc5f13 100644 --- a/fees/allbridge-classic.ts +++ b/fees/allbridge-classic.ts @@ -91,7 +91,7 @@ const adapter: Adapter = { acc[chain] = { fetch: getFeesFunction(chain), meta: { methodology }, - start: async () => startTimes[chain], + start: startTimes[chain], }; return acc; }, {} as BaseAdapter) diff --git a/fees/allbridge-core.ts b/fees/allbridge-core.ts index 0d01e961f0..7cd0b281d4 100644 --- a/fees/allbridge-core.ts +++ b/fees/allbridge-core.ts @@ -172,37 +172,37 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch(CHAIN.ETHEREUM), - start: async () => 1684022400, + start: 1684022400, meta, }, [CHAIN.BSC]: { fetch: fetch(CHAIN.BSC), - start: async () => 1684022400, + start: 1684022400, meta, }, [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON), - start: async () => 1684022400, + start: 1684022400, meta, }, [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1687838400, + start: 1687838400, meta, }, [CHAIN.AVAX]: { fetch: fetch(CHAIN.AVAX), - start: async () => 1698030000, + start: 1698030000, meta, }, [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1702868400, + start: 1702868400, meta, }, [CHAIN.TRON]: { fetch: fetch(CHAIN.TRON), - start: async () => 1685109600, + start: 1685109600, meta, }, }, diff --git a/fees/amphor/index.ts b/fees/amphor/index.ts index 5ee88be126..9b97aac8df 100644 --- a/fees/amphor/index.ts +++ b/fees/amphor/index.ts @@ -200,7 +200,7 @@ const adapter: Adapter = { adapter: { [ETHEREUM]: { fetch: data, - start: async () => 1696611600, + start: 1696611600, meta: { methodology } diff --git a/fees/angle/index.ts b/fees/angle/index.ts index 3cad0e46c7..a552a5da26 100644 --- a/fees/angle/index.ts +++ b/fees/angle/index.ts @@ -228,23 +228,23 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graph(endpoints)(CHAIN.ARBITRUM), - start: async () => 1672531200, + start: 1672531200, }, [CHAIN.AVAX]: { fetch: graph(endpoints)(CHAIN.AVAX), - start: async () => 1672531200, + start: 1672531200, }, [CHAIN.ETHEREUM]: { fetch: graph(endpoints)(CHAIN.ETHEREUM), - start: async () => 1672531200, + start: 1672531200, }, [CHAIN.OPTIMISM]: { fetch: graph(endpoints)(CHAIN.OPTIMISM), - start: async () => 1672531200, + start: 1672531200, }, [CHAIN.POLYGON]: { fetch: graph(endpoints)(CHAIN.POLYGON), - start: async () => 1672531200, + start: 1672531200, }, } } diff --git a/fees/apex.ts b/fees/apex.ts index 1c312c6f77..1a81c359e7 100644 --- a/fees/apex.ts +++ b/fees/apex.ts @@ -22,7 +22,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fees, - start: async () => 1693440000, + start: 1693440000, } } } diff --git a/fees/apollox/index.ts b/fees/apollox/index.ts index f5eb1af463..204b4e2ab3 100644 --- a/fees/apollox/index.ts +++ b/fees/apollox/index.ts @@ -27,7 +27,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BSC]: { fetch: request(endpoints)(CHAIN.BSC), - start: async () => 1689609600, + start: 1689609600, }, } } diff --git a/fees/arbitrum/index.ts b/fees/arbitrum/index.ts index 22734fea34..fa0f7d2737 100644 --- a/fees/arbitrum/index.ts +++ b/fees/arbitrum/index.ts @@ -49,7 +49,7 @@ const adapter: Adapter = { } }, - start: async () => 1628553600 + start: 1628553600 }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/ascent-v2.ts b/fees/ascent-v2.ts index a3d1df4c47..fa09603625 100644 --- a/fees/ascent-v2.ts +++ b/fees/ascent-v2.ts @@ -74,7 +74,7 @@ const getFees = () => { adapter: { [CHAIN.EON]: { fetch: getFees(), - start: async () => 1698796800, + start: 1698796800, meta: { methodology: { diff --git a/fees/ascent-v3.ts b/fees/ascent-v3.ts index b9a01a21ce..8a80a3c633 100644 --- a/fees/ascent-v3.ts +++ b/fees/ascent-v3.ts @@ -48,7 +48,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.EON]: { fetch: v3Graphs(CHAIN.EON), - start: async () => 1699401600, + start: 1699401600, }, }, }; diff --git a/fees/auragi.ts b/fees/auragi.ts index dfe0ff5753..a8b1910c57 100644 --- a/fees/auragi.ts +++ b/fees/auragi.ts @@ -66,7 +66,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getFees(), - start: async () => 1680627600, + start: 1680627600, }, }, }; diff --git a/fees/avalanche.ts b/fees/avalanche.ts index fa07dd2ab4..6c806253c7 100644 --- a/fees/avalanche.ts +++ b/fees/avalanche.ts @@ -51,7 +51,7 @@ const adapter: Adapter = { dailyHoldersRevenue: dailyFee.toString(), }; }, - start: async () => 1609459200 + start: 1609459200 }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/azuro/index.ts b/fees/azuro/index.ts index d55829ec53..4ec5eea09a 100644 --- a/fees/azuro/index.ts +++ b/fees/azuro/index.ts @@ -117,28 +117,28 @@ const adapter: Adapter = { adapter: { [CHAIN.POLYGON]: { fetch: graphs(endpoints)(CHAIN.POLYGON), - start: async () => 1675209600, + start: 1675209600, meta: { methodology } }, [CHAIN.XDAI]: { fetch: graphs(endpoints)(CHAIN.XDAI), - start: async () => 1654646400, + start: 1654646400, meta: { methodology } }, [CHAIN.ARBITRUM]: { fetch: graphs(endpoints)(CHAIN.ARBITRUM), - start: async () => 1686009600, + start: 1686009600, meta: { methodology } }, [CHAIN.LINEA]: { fetch: graphs(endpoints)(CHAIN.LINEA), - start: async () => 1691452800, + start: 1691452800, meta: { methodology } diff --git a/fees/balancer.ts b/fees/balancer.ts index 3ea4e00f13..32af257c3d 100644 --- a/fees/balancer.ts +++ b/fees/balancer.ts @@ -182,7 +182,7 @@ const adapter: Adapter = { v1: { [CHAIN.ETHEREUM]: { fetch: v1Graphs(v1Endpoints)(CHAIN.ETHEREUM), - start: async () => 1582761600, + start: 1582761600, meta: { methodology: { UserFees: "Trading fees paid by users, ranging from 0.0001% and 10%", @@ -197,49 +197,49 @@ const adapter: Adapter = { v2: { [CHAIN.ETHEREUM]: { fetch: v2Graphs(v2Endpoints)(CHAIN.ETHEREUM), - start: async () => 1619136000, + start: 1619136000, meta: { methodology } }, [CHAIN.POLYGON]: { fetch: v2Graphs(v2Endpoints)(CHAIN.POLYGON), - start: async () => 1624492800, + start: 1624492800, meta: { methodology } }, [CHAIN.ARBITRUM]: { fetch: v2Graphs(v2Endpoints)(CHAIN.ARBITRUM), - start: async () => 1630368000, + start: 1630368000, meta: { methodology } }, [CHAIN.AVAX]: { fetch: v2Graphs(v2Endpoints)(CHAIN.AVAX), - start: async () => 1677283200, + start: 1677283200, meta: { methodology } }, [CHAIN.XDAI]: { fetch: v2Graphs(v2Endpoints)(CHAIN.XDAI), - start: async () => 1673308800, + start: 1673308800, meta: { methodology } }, [CHAIN.BASE]: { fetch: v2Graphs(v2Endpoints)(CHAIN.BASE), - start: async () => 1690329600, + start: 1690329600, meta: { methodology } }, [CHAIN.POLYGON_ZKEVM]: { fetch: v2Graphs(v2Endpoints)(CHAIN.POLYGON_ZKEVM), - start: async () => 1686614400, + start: 1686614400, meta: { methodology } diff --git a/fees/banana-gun-trading.ts b/fees/banana-gun-trading.ts index 69dcb00777..aac51bf829 100644 --- a/fees/banana-gun-trading.ts +++ b/fees/banana-gun-trading.ts @@ -65,7 +65,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1685577600, + start: 1685577600, }, }, }; diff --git a/fees/base.ts b/fees/base.ts index a38cfecbc4..2a636c736f 100644 --- a/fees/base.ts +++ b/fees/base.ts @@ -131,7 +131,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BASE]: { fetch: fetch, - start: async () => 1687474800, + start: 1687474800, }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/based-markets.ts b/fees/based-markets.ts index 2e2e5c78bb..8ba3eaa112 100644 --- a/fees/based-markets.ts +++ b/fees/based-markets.ts @@ -106,7 +106,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch: fetchVolume, - start: async () => 1691332847 + start: 1691332847 } } } diff --git a/fees/beamex.ts b/fees/beamex.ts index e4cfc4280e..5b134014d5 100644 --- a/fees/beamex.ts +++ b/fees/beamex.ts @@ -92,7 +92,7 @@ const adapter: Adapter = { adapter: { [CHAIN.MOONBEAM]: { fetch: graphsBeamex(CHAIN.MOONBEAM), - start: async () => 1687421388, + start: 1687421388, meta: { methodology: methodologyBeamex, }, diff --git a/fees/beamswap-v3.ts b/fees/beamswap-v3.ts index 58132c0d1a..b87e42a3fd 100644 --- a/fees/beamswap-v3.ts +++ b/fees/beamswap-v3.ts @@ -78,7 +78,7 @@ const adapter: Adapter = { adapter: { [CHAIN.MOONBEAM]: { fetch: fetch(CHAIN.MOONBEAM), - start: async () => 1684397388, + start: 1684397388, }, }, }; diff --git a/fees/beethoven-x.ts b/fees/beethoven-x.ts index 6575a4f600..5d8015a4fb 100644 --- a/fees/beethoven-x.ts +++ b/fees/beethoven-x.ts @@ -193,11 +193,11 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetchFees(CHAIN.OPTIMISM), - start: async () => 1672531200 + start: 1672531200 }, [CHAIN.FANTOM]: { fetch: fetchFees(CHAIN.FANTOM), - start: async () => 1672531200 + start: 1672531200 } } } diff --git a/fees/benqi-lending.ts b/fees/benqi-lending.ts index 9788c21f08..bfc9ae7b41 100644 --- a/fees/benqi-lending.ts +++ b/fees/benqi-lending.ts @@ -198,7 +198,7 @@ const adapter: Adapter = { adapter: { [CHAIN.AVAX]: { fetch: fetch, - start: async () => 1664582400, + start: 1664582400, // runAtCurrTime: true, }, }, diff --git a/fees/benqi-staked-avax.ts b/fees/benqi-staked-avax.ts index 832a3ed5b4..0416be59ee 100644 --- a/fees/benqi-staked-avax.ts +++ b/fees/benqi-staked-avax.ts @@ -52,7 +52,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.AVAX]: { fetch: fetchFees, - start: async () => 1644710400 + start: 1644710400 } } } diff --git a/fees/betswirl/index.ts b/fees/betswirl/index.ts index 5321a4f0fd..b8182a544c 100644 --- a/fees/betswirl/index.ts +++ b/fees/betswirl/index.ts @@ -432,22 +432,22 @@ const meta = { const adapter: Adapter = { adapter: { [BSC]: { - start: async () => 1658880000, + start: 1658880000, fetch: graphs()(BSC), meta, }, [POLYGON]: { - start: async () => 1658880000, + start: 1658880000, fetch: graphs()(POLYGON), meta, }, [AVAX]: { - start: async () => 1658880000, + start: 1658880000, fetch: graphs()(AVAX), meta, }, [ARBITRUM]: { - start: async () => 1658880000, + start: 1658880000, fetch: graphs()(ARBITRUM), meta, }, diff --git a/fees/blazebot.ts b/fees/blazebot.ts index f879389e85..caf2ac0b22 100644 --- a/fees/blazebot.ts +++ b/fees/blazebot.ts @@ -51,7 +51,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BASE]: { fetch: graphs(CHAIN.BASE), - start: async () => 1694131200, + start: 1694131200, }, } } diff --git a/fees/blex/index.ts b/fees/blex/index.ts index 3b0b7d55ce..088fea02c9 100644 --- a/fees/blex/index.ts +++ b/fees/blex/index.ts @@ -109,7 +109,7 @@ const adapter: Adapter = { adapter: { [ARBITRUM]: { fetch: getFetch(allFeesData,userFeesData)(ARBITRUM), - start: async () => 1691211277, + start: 1691211277, }, } } diff --git a/fees/bluefin.ts b/fees/bluefin.ts index 2715726d69..de5c7826bc 100644 --- a/fees/bluefin.ts +++ b/fees/bluefin.ts @@ -22,7 +22,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.SUI]: { fetch: fetch_sui, - start: async () => 1700265600, + start: 1700265600, runAtCurrTime: true, }, }, diff --git a/fees/bluemove/index.ts b/fees/bluemove/index.ts index 17f9365faa..3ca689ab46 100644 --- a/fees/bluemove/index.ts +++ b/fees/bluemove/index.ts @@ -36,7 +36,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.APTOS]: { fetch, - start: async () => 1666224000, + start: 1666224000, }, }, }; diff --git a/fees/blur/index.ts b/fees/blur/index.ts index 1120fd0cf0..c9c2a6abb4 100644 --- a/fees/blur/index.ts +++ b/fees/blur/index.ts @@ -118,7 +118,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees, - start: async () => 1688256000 + start: 1688256000 } } } diff --git a/fees/bmx.ts b/fees/bmx.ts index 5060f81b4a..89a9051cf5 100644 --- a/fees/bmx.ts +++ b/fees/bmx.ts @@ -60,7 +60,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BASE]: { fetch: graphs(CHAIN.BASE), - start: async () => 1694304000, + start: 1694304000, meta: { methodology, }, diff --git a/fees/boba.ts b/fees/boba.ts index f11f25ae2a..8cc677ebb6 100644 --- a/fees/boba.ts +++ b/fees/boba.ts @@ -83,7 +83,7 @@ const adapter: Adapter = { throw error } }, - start: async () => 1664582400 + start: 1664582400 }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/camelot-v3.ts b/fees/camelot-v3.ts index 48e94245c9..1be6b91f93 100644 --- a/fees/camelot-v3.ts +++ b/fees/camelot-v3.ts @@ -53,7 +53,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1680220800, + start: 1680220800, }, }, }; diff --git a/fees/camelot.ts b/fees/camelot.ts index a2e186ebc2..d4c24011da 100644 --- a/fees/camelot.ts +++ b/fees/camelot.ts @@ -53,7 +53,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1668124800, + start: 1668124800, }, }, }; diff --git a/fees/caviar-tangible.ts b/fees/caviar-tangible.ts index 03d79560fb..54bd9296aa 100644 --- a/fees/caviar-tangible.ts +++ b/fees/caviar-tangible.ts @@ -49,7 +49,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.POLYGON]: { fetch: fetchFees, - start: async () => 1692144000, + start: 1692144000, } } } diff --git a/fees/caviarnine-lsu-pool.ts b/fees/caviarnine-lsu-pool.ts index 11a346cb76..82aaef480c 100644 --- a/fees/caviarnine-lsu-pool.ts +++ b/fees/caviarnine-lsu-pool.ts @@ -31,7 +31,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.RADIXDLT]: { fetch: fetchFees, - start: async () => 1699142400, + start: 1699142400, // runAtCurrTime: true } } diff --git a/fees/caviarnine-shape-liquidity.ts b/fees/caviarnine-shape-liquidity.ts index b26ec86595..3f3389f76a 100644 --- a/fees/caviarnine-shape-liquidity.ts +++ b/fees/caviarnine-shape-liquidity.ts @@ -33,7 +33,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.RADIXDLT]: { fetch: fetchFees, - start: async () => 1699142400, + start: 1699142400, // runAtCurrTime: true } } diff --git a/fees/chainlink-ccip.ts b/fees/chainlink-ccip.ts index 983d25cb83..16308a129e 100644 --- a/fees/chainlink-ccip.ts +++ b/fees/chainlink-ccip.ts @@ -144,31 +144,31 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees(CHAIN.ETHEREUM), - start: async () => 1688515200, + start: 1688515200, }, [CHAIN.ARBITRUM]: { fetch: fetchFees(CHAIN.ARBITRUM), - start: async () => 1688515200, + start: 1688515200, }, [CHAIN.OPTIMISM]: { fetch: fetchFees(CHAIN.OPTIMISM), - start: async () => 1688515200, + start: 1688515200, }, [CHAIN.BSC]: { fetch: fetchFees(CHAIN.BSC), - start: async () => 1688515200, + start: 1688515200, }, [CHAIN.BASE]: { fetch: fetchFees(CHAIN.BASE), - start: async () => 1688515200, + start: 1688515200, }, [CHAIN.POLYGON]: { fetch: fetchFees(CHAIN.POLYGON), - start: async () => 1688515200, + start: 1688515200, }, [CHAIN.AVAX]: { fetch: fetchFees(CHAIN.AVAX), - start: async () => 1688515200, + start: 1688515200, } } } diff --git a/fees/chainlink-keepers.ts b/fees/chainlink-keepers.ts index fa5bced4a9..1f33dead26 100644 --- a/fees/chainlink-keepers.ts +++ b/fees/chainlink-keepers.ts @@ -91,31 +91,31 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchKeeper(CHAIN.ETHEREUM), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.BSC]: { fetch: fetchKeeper(CHAIN.BSC), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.POLYGON]: { fetch: fetchKeeper(CHAIN.POLYGON), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.FANTOM]: { fetch: fetchKeeper(CHAIN.FANTOM), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.AVAX]: { fetch: fetchKeeper(CHAIN.AVAX), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.ARBITRUM]: { fetch: fetchKeeper(CHAIN.ARBITRUM), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.OPTIMISM]: { fetch: fetchKeeper(CHAIN.OPTIMISM), - start: async () => 1675382400 + start: 1675382400 } } } diff --git a/fees/chainlink-requests.ts b/fees/chainlink-requests.ts index f5b7e1137d..b9f183cb55 100644 --- a/fees/chainlink-requests.ts +++ b/fees/chainlink-requests.ts @@ -110,27 +110,27 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchRequests(CHAIN.ETHEREUM), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.BSC]: { fetch: fetchRequests(CHAIN.BSC), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.POLYGON]: { fetch: fetchRequests(CHAIN.POLYGON), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.OPTIMISM]: { fetch: fetchRequests(CHAIN.OPTIMISM), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.ARBITRUM]: { fetch: fetchRequests(CHAIN.ARBITRUM), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.AVAX]: { fetch: fetchRequests(CHAIN.AVAX), - start: async () => 1675382400, + start: 1675382400, }, } } diff --git a/fees/chainlink-vrf-v1.ts b/fees/chainlink-vrf-v1.ts index f20f01f4df..8d062ae214 100644 --- a/fees/chainlink-vrf-v1.ts +++ b/fees/chainlink-vrf-v1.ts @@ -132,15 +132,15 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch(CHAIN.ETHEREUM, 1), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.BSC]: { fetch: fetch(CHAIN.BSC, 1), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON, 1), - start: async () => 1675382400, + start: 1675382400, } } } diff --git a/fees/chainlink-vrf-v2.ts b/fees/chainlink-vrf-v2.ts index b34ca66018..ad477176b3 100644 --- a/fees/chainlink-vrf-v2.ts +++ b/fees/chainlink-vrf-v2.ts @@ -119,23 +119,23 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch(CHAIN.ETHEREUM, 2), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.BSC]: { fetch: fetch(CHAIN.BSC, 2), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON, 2), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.FANTOM]: { fetch: fetch(CHAIN.FANTOM, 2), - start: async () => 1675382400, + start: 1675382400, }, [CHAIN.AVAX]: { fetch: fetch(CHAIN.AVAX, 2), - start: async () => 1675382400, + start: 1675382400, } } } diff --git a/fees/chimpexchange.ts b/fees/chimpexchange.ts index 28493702f6..43de71290f 100644 --- a/fees/chimpexchange.ts +++ b/fees/chimpexchange.ts @@ -119,7 +119,7 @@ const adapter: Adapter = { adapter: { [CHAIN.LINEA]: { fetch: graphs(endpoints)(CHAIN.LINEA), - start: async () => 1699488000, + start: 1699488000, meta: { methodology, }, diff --git a/fees/chronos.ts b/fees/chronos.ts index 69e5e9b158..40729db6f9 100644 --- a/fees/chronos.ts +++ b/fees/chronos.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getDexFeesExports({ chain: CHAIN.ARBITRUM, factory: FACTORY_ADDRESS }), - start: async () => 1682380800, + start: 1682380800, }, } }; diff --git a/fees/cleopatra-exchange.ts b/fees/cleopatra-exchange.ts index 316b7d03a3..5af83abbbc 100644 --- a/fees/cleopatra-exchange.ts +++ b/fees/cleopatra-exchange.ts @@ -50,7 +50,7 @@ const v2Graphs = getGraphDimensions({ const adapter: SimpleAdapter = { adapter: { [CHAIN.MANTLE]: {fetch: v2Graphs(MANTLE), - start: async () => startTimeV2[CHAIN.MANTLE], + start: startTimeV2[CHAIN.MANTLE], meta: { methodology: { ...methodology, diff --git a/fees/clever.ts b/fees/clever.ts index 98ce586daa..b2ea7f98b8 100644 --- a/fees/clever.ts +++ b/fees/clever.ts @@ -68,7 +68,7 @@ const adapter: Adapter = { adapter: { [ETHEREUM]: { fetch: graph(endpoints)(ETHEREUM), - start: async () => 1681908702, + start: 1681908702, }, }, }; diff --git a/fees/clipper.ts b/fees/clipper.ts index c1d377d3cc..21b6cc7380 100644 --- a/fees/clipper.ts +++ b/fees/clipper.ts @@ -90,23 +90,23 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees(CHAIN.ETHEREUM), - start: async () => 1659657600, + start: 1659657600, }, [CHAIN.OPTIMISM]: { fetch: fetchFees(CHAIN.OPTIMISM), - start: async () => 1656460800, + start: 1656460800, }, [CHAIN.POLYGON]: { fetch: fetchFees(CHAIN.POLYGON), - start: async () => 1650412800, + start: 1650412800, }, // [CHAIN.MOONBEAM]: { // fetch: fetchFees(CHAIN.MOONBEAN), - // start: async () => 1659657600, + // start: 1659657600, // }, [CHAIN.ARBITRUM]: { fetch: fetchFees(CHAIN.ARBITRUM), - start: async () => 1690934400, + start: 1690934400, } } } diff --git a/fees/concentrator.ts b/fees/concentrator.ts index 073f1d12a2..665c72544e 100644 --- a/fees/concentrator.ts +++ b/fees/concentrator.ts @@ -61,7 +61,7 @@ const adapter: Adapter = { adapter: { [ETHEREUM]: { fetch: graph(endpoints)(ETHEREUM), - start: async () => 1667911902, + start: 1667911902, }, }, }; diff --git a/fees/convex.ts b/fees/convex.ts index 0545aaa928..9859648b36 100644 --- a/fees/convex.ts +++ b/fees/convex.ts @@ -88,7 +88,7 @@ const adapter: Adapter = { adapter: { [ETHEREUM]: { fetch: graph(endpoints)(ETHEREUM), - start: async () => 1621224000, + start: 1621224000, meta: { methodology } diff --git a/fees/covo-finance.ts b/fees/covo-finance.ts index e2fd114479..7bf2a76a79 100644 --- a/fees/covo-finance.ts +++ b/fees/covo-finance.ts @@ -67,7 +67,7 @@ const adapter: Adapter = { adapter: { [POLYGON]: { fetch: graphs(endpoints)(POLYGON), - start: async () => 1672511400, + start: 1672511400, meta: { methodology } diff --git a/fees/covo-v2.ts b/fees/covo-v2.ts index eae0ed3dd2..15a545d393 100644 --- a/fees/covo-v2.ts +++ b/fees/covo-v2.ts @@ -85,7 +85,7 @@ const adapter: Adapter = { adapter: { [POLYGON]: { fetch: graphs(endpoints)(POLYGON), - start: async () => 1680070802, + start: 1680070802, meta: { methodology } diff --git a/fees/crv-usd.ts b/fees/crv-usd.ts index 30abf91467..fbb24c8e36 100644 --- a/fees/crv-usd.ts +++ b/fees/crv-usd.ts @@ -66,7 +66,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees(CHAIN.ETHEREUM), - start: async () => 1684047600 + start: 1684047600 } } } diff --git a/fees/curve.ts b/fees/curve.ts index 4a30f9ae2e..cbee0571ea 100644 --- a/fees/curve.ts +++ b/fees/curve.ts @@ -99,49 +99,49 @@ const adapter: Adapter = { adapter: { [ETHEREUM]: { fetch: graph(endpoints)(ETHEREUM), - start: async () => 1577854800, + start: 1577854800, meta: { methodology } }, [OPTIMISM]: { fetch: graph(endpoints)(OPTIMISM), - start: async () => 1620532800, + start: 1620532800, meta: { methodology } }, [ARBITRUM]: { fetch: graph(endpoints)(ARBITRUM), - start: async () => 1632110400, + start: 1632110400, meta: { methodology } }, [POLYGON]: { fetch: graph(endpoints)(POLYGON), - start: async () => 1620014400, + start: 1620014400, meta: { methodology } }, [AVAX]: { fetch: graph(endpoints)(AVAX), - start: async () => 1633492800, + start: 1633492800, meta: { methodology } }, [FANTOM]: { fetch: graph(endpoints)(FANTOM), - start: async () => 1620532800, + start: 1620532800, meta: { methodology } }, [XDAI]: { fetch: graph(endpoints)(XDAI), - start: async () => 1620532800, + start: 1620532800, meta: { methodology } diff --git a/fees/danogo/index.ts b/fees/danogo/index.ts index 4fb09ddfb5..1f7fe5d2a9 100644 --- a/fees/danogo/index.ts +++ b/fees/danogo/index.ts @@ -50,7 +50,7 @@ const adapter: SimpleAdapter = { adapter: { cardano: { fetch: fetchData, - start: async () => DANOGO_START_TIMESTAMP, + start: DANOGO_START_TIMESTAMP, runAtCurrTime: false, } } diff --git a/fees/defi-saver.ts b/fees/defi-saver.ts index 80001f0c9b..353289d0fb 100644 --- a/fees/defi-saver.ts +++ b/fees/defi-saver.ts @@ -58,7 +58,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1640995200, + start: 1640995200, } } } diff --git a/fees/defiplaza/index.ts b/fees/defiplaza/index.ts index 709b1a047d..5edd2524f1 100644 --- a/fees/defiplaza/index.ts +++ b/fees/defiplaza/index.ts @@ -58,7 +58,7 @@ const adapter: SimpleAdapter = { SupplySideRevenue: "LPs revenue is a small percentage of each swap, which is updated manually on an irregular basis to optimize aggregator volume.", } }, - start: async () => 1633237008 + start: 1633237008 }, [CHAIN.RADIXDLT]: { fetch: async (timestamp: number): Promise => { @@ -87,7 +87,7 @@ const adapter: SimpleAdapter = { SupplySideRevenue: "LPs revenue is 0.5% of each swap, double if hopping between pairs is needed.", } }, - start: async () => 1700784000 + start: 1700784000 } }, }; diff --git a/fees/dexter/index.ts b/fees/dexter/index.ts index 59f77fdfe8..81438e6367 100644 --- a/fees/dexter/index.ts +++ b/fees/dexter/index.ts @@ -35,7 +35,7 @@ const adapter: Adapter = { [CHAIN.PERSISTENCE]: { fetch, runAtCurrTime: true, - start: async () => 0, + start: 0, }, } }; diff --git a/fees/dln/index.ts b/fees/dln/index.ts index 156fbaac69..6bdfca3a4e 100644 --- a/fees/dln/index.ts +++ b/fees/dln/index.ts @@ -41,43 +41,43 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch(1), - start: async () => 1680278400, + start: 1680278400, }, [CHAIN.ARBITRUM]: { fetch: fetch(42161), - start: async () => 1680278400, + start: 1680278400, }, [CHAIN.AVAX]: { fetch: fetch(43114), - start: async () => 1680278400, + start: 1680278400, }, [CHAIN.BSC]: { fetch: fetch(56), - start: async () => 1680278400, + start: 1680278400, }, [CHAIN.POLYGON]: { fetch: fetch(137), - start: async () => 1680278400, + start: 1680278400, }, [CHAIN.SOLANA]: { fetch: fetch(7565164), - start: async () => 1680278400, + start: 1680278400, }, [CHAIN.LINEA]: { fetch: fetch(59144), - start: async () => 1680278400, + start: 1680278400, }, [CHAIN.BASE]: { fetch: fetch(8453), - start: async () => 1680278400, + start: 1680278400, }, [CHAIN.OPTIMISM]: { fetch: fetch(10), - start: async () => 1680278400, + start: 1680278400, }, [CHAIN.FANTOM]: { fetch: fetch(250), - start: async () => 1680278400, + start: 1680278400, }, }, }; diff --git a/fees/dydx.ts b/fees/dydx.ts index d087c00b5a..d2644a9723 100644 --- a/fees/dydx.ts +++ b/fees/dydx.ts @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch, - start: async () => 1700265600, + start: 1700265600, runAtCurrTime: true, }, }, diff --git a/fees/e3.ts b/fees/e3.ts index 511e1674a8..0d8b5bf949 100644 --- a/fees/e3.ts +++ b/fees/e3.ts @@ -154,17 +154,17 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), - start: async () => 1681130543, + start: 1681130543, meta: { methodology } }, [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), - start: async () => 1686459416, + start: 1686459416, meta: { methodology } }, [CHAIN.BASE]: { fetch: graph(CHAIN.BASE), - start: async () => 1691547000, + start: 1691547000, meta: { methodology } } } diff --git a/fees/edebase.ts b/fees/edebase.ts index d547a786d3..abc142dadb 100644 --- a/fees/edebase.ts +++ b/fees/edebase.ts @@ -50,7 +50,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BASE]: { fetch: graphs(endpoints)(CHAIN.BASE), - start: async () => 1691539200, + start: 1691539200, meta: { methodology: { Fees: "All mint, burn, margin and liquidation and swap fees are collected", diff --git a/fees/ekubo.ts b/fees/ekubo.ts index d8ecc37555..6b0075a892 100644 --- a/fees/ekubo.ts +++ b/fees/ekubo.ts @@ -32,7 +32,7 @@ const adapter: Adapter = { [CHAIN.STARKNET]: { fetch: fetch, runAtCurrTime: true, - start: async () => 1695168000 + start: 1695168000 }, } } diff --git a/fees/el-dorado-exchange.ts b/fees/el-dorado-exchange.ts index 43743413fa..b5b0765a88 100644 --- a/fees/el-dorado-exchange.ts +++ b/fees/el-dorado-exchange.ts @@ -51,7 +51,7 @@ const adapter: Adapter = { adapter: { // [BSC]: { // fetch: graphs(endpoints)(BSC), - // start: async () => 1670659200, + // start: 1670659200, // meta: { // methodology: { // Fees: "All mint, burn, margin and liquidation and swap fees are collected", @@ -62,7 +62,7 @@ const adapter: Adapter = { // }, [ARBITRUM]: { fetch: graphs(endpoints)(ARBITRUM), - start: async () => 1678147200, + start: 1678147200, meta: { methodology: { Fees: "All mint, burn, margin and liquidation and swap fees are collected", diff --git a/fees/emdx.ts b/fees/emdx.ts index 362a0f9ad1..18aaddf461 100644 --- a/fees/emdx.ts +++ b/fees/emdx.ts @@ -39,7 +39,7 @@ const adapter: Adapter = { adapter: { [CHAIN.AVAX]: { fetch: fetch, - start: async () => 1653134400 + start: 1653134400 }, } } diff --git a/fees/equalizer-exchange.ts b/fees/equalizer-exchange.ts index 012a6724cd..50a18c6a8b 100644 --- a/fees/equalizer-exchange.ts +++ b/fees/equalizer-exchange.ts @@ -278,7 +278,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch, - start: async () => 1670544000, + start: 1670544000, }, } }; diff --git a/fees/equation-v2/index.ts b/fees/equation-v2/index.ts index 207146b0ba..b650f64171 100644 --- a/fees/equation-v2/index.ts +++ b/fees/equation-v2/index.ts @@ -53,7 +53,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getFetch()(CHAIN.ARBITRUM), - start: async () => 1706227200, + start: 1706227200, meta: { methodology } diff --git a/fees/equation/index.ts b/fees/equation/index.ts index ba0040402d..729fd9151d 100644 --- a/fees/equation/index.ts +++ b/fees/equation/index.ts @@ -53,7 +53,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getFetch()(CHAIN.ARBITRUM), - start: async () => 1697760000, + start: 1697760000, meta: { methodology } diff --git a/fees/equilibre-exchange.ts b/fees/equilibre-exchange.ts index 2539f86bc2..4f5e4ca8bb 100644 --- a/fees/equilibre-exchange.ts +++ b/fees/equilibre-exchange.ts @@ -7,7 +7,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.KAVA]: { fetch: getDexFeesExports({ chain: CHAIN.KAVA, factory: FACTORY_ADDRESS,}), - start: async () => 1677888000, + start: 1677888000, }, } }; diff --git a/fees/equity/index.ts b/fees/equity/index.ts index 3d47cfc73e..102f98549f 100644 --- a/fees/equity/index.ts +++ b/fees/equity/index.ts @@ -46,7 +46,7 @@ const adapter: Adapter = { adapter: { [FANTOM]: { fetch: graphs(endpoints)(FANTOM), - start: async () => 1689767230, + start: 1689767230, meta: { methodology: '100.00% of All & Any Fees generated from All activity on Any Equity Platform Product goes solely to veEQUAL voters.' } diff --git a/fees/extra/index.ts b/fees/extra/index.ts index 213aa35bea..d4964415bd 100644 --- a/fees/extra/index.ts +++ b/fees/extra/index.ts @@ -107,11 +107,11 @@ const adapter: Adapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: graphs(CHAIN.OPTIMISM), - start: async () => 1683450630, + start: 1683450630, }, [CHAIN.BASE]: { fetch: graphs(CHAIN.BASE), - start: async () => 1693449471, + start: 1693449471, }, }, }; diff --git a/fees/fantom.ts b/fees/fantom.ts index 89b0fb9920..1aaa5d0476 100644 --- a/fees/fantom.ts +++ b/fees/fantom.ts @@ -19,7 +19,7 @@ const adapter: Adapter = { dailyRevenue: (usdFees*0.3).toString(), }; }, - start: async () => 1575158400 + start: 1575158400 }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/firebird-finance.ts b/fees/firebird-finance.ts index 42790615bd..857ba929b3 100644 --- a/fees/firebird-finance.ts +++ b/fees/firebird-finance.ts @@ -39,32 +39,32 @@ const adapter: Adapter = { adapter: { [CHAIN.AVAX]: { fetch: fetch(43114), - start: async () => 1659935138, + start: 1659935138, meta: { methodology }, }, [CHAIN.FANTOM]: { fetch: fetch(137), - start: async () => 1654574276, + start: 1654574276, meta: { methodology }, }, [CHAIN.POLYGON]: { fetch: fetch(137), - start: async () => 1661412914, + start: 1661412914, meta: { methodology }, }, [CHAIN.BSC]: { fetch: fetch(56), - start: async () => 1657270551, + start: 1657270551, meta: { methodology }, }, [CHAIN.CRONOS]: { fetch: fetch(25), - start: async () => 1656399464, + start: 1656399464, meta: { methodology }, }, [CHAIN.ETHEREUM]: { fetch: fetch(1), - start: async () => 1673321423, + start: 1673321423, meta: { methodology }, }, }, diff --git a/fees/first-crypto-bank/index.ts b/fees/first-crypto-bank/index.ts index f3251810bb..42a953722d 100644 --- a/fees/first-crypto-bank/index.ts +++ b/fees/first-crypto-bank/index.ts @@ -69,7 +69,7 @@ const adapter: Adapter = { dailyFees: dailyFees.toString(), }; }, - start: async () => 1703203200, + start: 1703203200, }, }, } diff --git a/fees/forge.ts b/fees/forge.ts index 01352bedd4..1bf8ae82f9 100644 --- a/fees/forge.ts +++ b/fees/forge.ts @@ -49,7 +49,7 @@ const adapter: Adapter = { adapter: { [CHAIN.EVMOS]: { fetch: fetch(CHAIN.EVMOS), - start: async () => 1680480000, + start: 1680480000, }, }, }; diff --git a/fees/frax-fpi.ts b/fees/frax-fpi.ts index 343836cb40..12cc042780 100644 --- a/fees/frax-fpi.ts +++ b/fees/frax-fpi.ts @@ -40,7 +40,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1653955200 + start: 1653955200 }, } } diff --git a/fees/fulcrom-finance.ts b/fees/fulcrom-finance.ts index 923a691f27..9ac49a5cea 100644 --- a/fees/fulcrom-finance.ts +++ b/fees/fulcrom-finance.ts @@ -86,14 +86,14 @@ const adapter: Adapter = { adapter: { [CHAIN.CRONOS]: { fetch: graphs(endpoints)(CHAIN.CRONOS), - start: async () => 1677470400, + start: 1677470400, meta: { methodology, }, }, [CHAIN.ERA]: { fetch: graphs(endpoints)(CHAIN.ERA), - start: async () => 1696496400, + start: 1696496400, meta: { methodology, }, diff --git a/fees/fvm-exchange.ts b/fees/fvm-exchange.ts index 8bea345aee..b8ed5bbf76 100644 --- a/fees/fvm-exchange.ts +++ b/fees/fvm-exchange.ts @@ -157,7 +157,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch, - start: async () => 1688172646, + start: 1688172646, }, }, }; diff --git a/fees/fwx/index.ts b/fees/fwx/index.ts index ac9e60d785..454067c867 100644 --- a/fees/fwx/index.ts +++ b/fees/fwx/index.ts @@ -75,7 +75,7 @@ const adapter: Adapter = { adapter: { [CHAIN.AVAX]: { fetch: fetch(CHAIN.AVAX), - start: async () => 1701907200, + start: 1701907200, }, }, }; diff --git a/fees/gains-network.ts b/fees/gains-network.ts index 67d0880719..c4eb0ac47a 100644 --- a/fees/gains-network.ts +++ b/fees/gains-network.ts @@ -180,11 +180,11 @@ const adapter: Adapter = { adapter: { [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON), - start: async () => 1654214400, + start: 1654214400, }, [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1672358400, + start: 1672358400, }, }, }; diff --git a/fees/gambit.ts b/fees/gambit.ts index e0f0e3dd26..94526eccf7 100644 --- a/fees/gambit.ts +++ b/fees/gambit.ts @@ -101,11 +101,11 @@ const adapter: Adapter = { adapter: { [CHAIN.ERA]: { fetch: fetch(FEE_ADDRESS[CHAIN.ERA], CHAIN.ERA), - start: async () => 1690848000, // 2023/08/01 00:00:00 + start: 1690848000, // 2023/08/01 00:00:00 }, [CHAIN.ARBITRUM]: { fetch: fetch(FEE_ADDRESS[CHAIN.ARBITRUM], CHAIN.ARBITRUM), - start: async () => 1698883200, // 2023/11/02 00:00:00 + start: 1698883200, // 2023/11/02 00:00:00 }, }, }; diff --git a/fees/gamma.ts b/fees/gamma.ts index 83279f08d0..c69c7ac644 100644 --- a/fees/gamma.ts +++ b/fees/gamma.ts @@ -60,35 +60,35 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees(CHAIN.ETHEREUM), - start: async () => 1682121600, + start: 1682121600, }, [CHAIN.ARBITRUM]: { fetch: fetchFees(CHAIN.ARBITRUM), - start: async () => 1682121600, + start: 1682121600, }, [CHAIN.POLYGON]: { fetch: fetchFees(CHAIN.POLYGON), - start: async () => 1682121600, + start: 1682121600, }, [CHAIN.POLYGON_ZKEVM]: { fetch: fetchFees(CHAIN.POLYGON_ZKEVM), - start: async () => 1682121600, + start: 1682121600, }, [CHAIN.OPTIMISM]: { fetch: fetchFees(CHAIN.OPTIMISM), - start: async () => 1682121600, + start: 1682121600, }, [CHAIN.BSC]: { fetch: fetchFees("binance"), - start: async () => 1682121600, + start: 1682121600, }, [CHAIN.ROLLUX]: { fetch: fetchFees(CHAIN.ROLLUX), - start: async () => 1682121600, + start: 1682121600, }, [CHAIN.LINEA]: { fetch: fetchFees(CHAIN.LINEA), - start: async () => 1682121600, + start: 1682121600, }, } } diff --git a/fees/garden/index.ts b/fees/garden/index.ts index 8117ff148c..d8d0bee29f 100644 --- a/fees/garden/index.ts +++ b/fees/garden/index.ts @@ -53,7 +53,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: fetch(chain as CHAIN), - start: async () => 1698796799, + start: 1698796799, meta: { methodology: { Fees: "Users pay 0.3% for each swap along with a base fee", diff --git a/fees/gearbox/index.ts b/fees/gearbox/index.ts index 551a3bb59f..40bd66d23d 100644 --- a/fees/gearbox/index.ts +++ b/fees/gearbox/index.ts @@ -201,7 +201,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1665360000, + start: 1665360000, }, }, }; diff --git a/fees/geist-finance/index.ts b/fees/geist-finance/index.ts index 462f12a4d7..dc3e8a6fec 100644 --- a/fees/geist-finance/index.ts +++ b/fees/geist-finance/index.ts @@ -43,7 +43,7 @@ const adapter: Adapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [FANTOM]: { fetch: graphs()(CHAIN.FANTOM), - start: async () => 1633478400, + start: 1633478400, }, }, } diff --git a/fees/get-protocol.ts b/fees/get-protocol.ts index 1fcbd0395e..c86a09b58e 100644 --- a/fees/get-protocol.ts +++ b/fees/get-protocol.ts @@ -74,7 +74,7 @@ const adapter: Adapter = { adapter: { [POLYGON]: { fetch: graphs(), - start: async () => 1630468800, + start: 1630468800, meta: { methodology: "Ticketeers pay an on-chain fee in GET for every ticket that they sell through GET Protocol. Fees are determined by the amount deducted from users' balances when tickets are sold (fuel reserved) and revenue is collected when these tickets are checked-in, ending their lifecycle (fuel spent).", diff --git a/fees/ghostmarket/index.ts b/fees/ghostmarket/index.ts index af55874330..3fe2739691 100644 --- a/fees/ghostmarket/index.ts +++ b/fees/ghostmarket/index.ts @@ -59,42 +59,42 @@ const adapter: Adapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.NEO]: { fetch: apis(endpoints)(CHAIN.NEO), - start: async () => 1629813600, + start: 1629813600, meta: { methodology } }, [CHAIN.BSC]: { fetch: apis(endpoints)(CHAIN.BSC), - start: async () => 1653868800, + start: 1653868800, meta: { methodology } }, [CHAIN.AVAX]: { fetch: apis(endpoints)(CHAIN.AVAX), - start: async () => 1653868800, + start: 1653868800, meta: { methodology } }, [CHAIN.POLYGON]: { fetch: apis(endpoints)(CHAIN.POLYGON), - start: async () => 1653868800, + start: 1653868800, meta: { methodology } }, [CHAIN.ETHEREUM]: { fetch: apis(endpoints)(CHAIN.ETHEREUM), - start: async () => 1652400000, + start: 1652400000, meta: { methodology } }, [CHAIN.PHANTASMA]: { fetch: apis(endpoints)(CHAIN.PHANTASMA), - start: async () => 1577664000, + start: 1577664000, meta: { methodology } diff --git a/fees/gmx-v2/index.ts b/fees/gmx-v2/index.ts index 631f654c21..cb224e10ef 100644 --- a/fees/gmx-v2/index.ts +++ b/fees/gmx-v2/index.ts @@ -40,11 +40,11 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1690848000, + start: 1690848000, }, [CHAIN.AVAX]: { fetch: fetch(CHAIN.AVAX), - start: async () => 1692835200, + start: 1692835200, }, }, }; diff --git a/fees/gmx.ts b/fees/gmx.ts index 6c464d4e70..c12349b003 100644 --- a/fees/gmx.ts +++ b/fees/gmx.ts @@ -61,14 +61,14 @@ const adapter: Adapter = { adapter: { [ARBITRUM]: { fetch: graphs(endpoints)(ARBITRUM), - start: async () => 1630468800, + start: 1630468800, meta: { methodology } }, [AVAX]: { fetch: graphs(endpoints)(AVAX), - start: async () => 1641445200, + start: 1641445200, meta: { methodology } diff --git a/fees/goku-money/index.ts b/fees/goku-money/index.ts index b93ced0308..36008824b9 100644 --- a/fees/goku-money/index.ts +++ b/fees/goku-money/index.ts @@ -256,7 +256,7 @@ const adapter: Adapter = { dailyHoldersRevenue: totalRevenue, }; }, - start: async () => 1698768000, // 01 Nov 2023 + start: 1698768000, // 01 Nov 2023 }, }, }; diff --git a/fees/goldfinch.ts b/fees/goldfinch.ts index 85f8fe9bd6..c2ebc5353b 100644 --- a/fees/goldfinch.ts +++ b/fees/goldfinch.ts @@ -138,7 +138,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees, - start: async () => 1629331200 + start: 1629331200 } } } diff --git a/fees/grizzly-trade.ts b/fees/grizzly-trade.ts index 6aa583acfb..ca8faf7b29 100644 --- a/fees/grizzly-trade.ts +++ b/fees/grizzly-trade.ts @@ -61,7 +61,7 @@ const adapter: Adapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [BSC]: { fetch: graphs(endpoints)(BSC), - start: async () => 1689897600, + start: 1689897600, meta: { methodology } diff --git a/fees/hipo/index.ts b/fees/hipo/index.ts index 2a7e9efa08..70ceefdbd9 100644 --- a/fees/hipo/index.ts +++ b/fees/hipo/index.ts @@ -8,7 +8,7 @@ export default { adapter: { [CHAIN.TON]: { runAtCurrTime: true, - start: async () => 1698685200, + start: 1698685200, meta: { hallmarks: [ [1698685200, 'Hipo Launch'], diff --git a/fees/holdstation-defutures.ts b/fees/holdstation-defutures.ts index 07977f0e87..369fbf85bb 100644 --- a/fees/holdstation-defutures.ts +++ b/fees/holdstation-defutures.ts @@ -45,7 +45,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ERA]: { fetch, - start: async () => 1683590400, + start: 1683590400, }, }, }; diff --git a/fees/hono.ts b/fees/hono.ts index e1ee2c28a2..c36922ad2d 100644 --- a/fees/hono.ts +++ b/fees/hono.ts @@ -58,7 +58,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: graph(endpoints)(CHAIN.ETHEREUM), - start: async () => 1691798400 + start: 1691798400 } } } diff --git a/fees/hopr/index.ts b/fees/hopr/index.ts index f582834118..6cc844b381 100644 --- a/fees/hopr/index.ts +++ b/fees/hopr/index.ts @@ -98,7 +98,7 @@ const adapter: Adapter = { adapter: { [CHAIN.XDAI]: { fetch: fetch, - start: async () => 1693440000, + start: 1693440000, meta: { methodology } diff --git a/fees/hyperionx/index.ts b/fees/hyperionx/index.ts index 7bb7ab0dbe..89f2a0b9aa 100644 --- a/fees/hyperionx/index.ts +++ b/fees/hyperionx/index.ts @@ -58,7 +58,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ZKFAIR]: { fetch: graphs(CHAIN.ZKFAIR), - start: async () => 1706659200, + start: 1706659200, }, }, }; diff --git a/fees/immortalx/index.ts b/fees/immortalx/index.ts index f6a75210d0..a38db987a3 100644 --- a/fees/immortalx/index.ts +++ b/fees/immortalx/index.ts @@ -52,7 +52,7 @@ const adapter: Adapter = { adapter: { [CHAIN.CELO]: { fetch: fetch(CHAIN.CELO), - start: async () => 1690848000, + start: 1690848000, }, }, }; diff --git a/fees/impermax-finance.ts b/fees/impermax-finance.ts index d2ae6f0ad6..f6829510d7 100644 --- a/fees/impermax-finance.ts +++ b/fees/impermax-finance.ts @@ -46,7 +46,7 @@ const adapter: Adapter = { [CHAIN.ETHEREUM]: { fetch: graphs()(CHAIN.ETHEREUM), runAtCurrTime: true, - start: async () => 1698019200, + start: 1698019200, meta: { methodology } @@ -54,7 +54,7 @@ const adapter: Adapter = { [CHAIN.POLYGON]: { fetch: graphs()(CHAIN.POLYGON), runAtCurrTime: true, - start: async () => 1698019200, + start: 1698019200, meta: { methodology } @@ -62,7 +62,7 @@ const adapter: Adapter = { [CHAIN.ARBITRUM]: { fetch: graphs()(CHAIN.ARBITRUM), runAtCurrTime: true, - start: async () => 1698019200, + start: 1698019200, meta: { methodology } @@ -70,7 +70,7 @@ const adapter: Adapter = { [CHAIN.AVAX]: { fetch: graphs()(CHAIN.AVAX), runAtCurrTime: true, - start: async () => 1698019200, + start: 1698019200, meta: { methodology } @@ -79,7 +79,7 @@ const adapter: Adapter = { // [CHAIN.MOONRIVER]: { // fetch: graphs()(CHAIN.MOONRIVER), // runAtCurrTime: true, - // start: async () => 1698019200, + // start: 1698019200, // meta: { // methodology // } @@ -87,7 +87,7 @@ const adapter: Adapter = { // [CHAIN.CANTO]: { // fetch: graphs()(CHAIN.CANTO), // runAtCurrTime: true, - // start: async () => 1698019200, + // start: 1698019200, // meta: { // methodology // } @@ -95,7 +95,7 @@ const adapter: Adapter = { [CHAIN.ERA]: { fetch: graphs()(CHAIN.ERA), runAtCurrTime: true, - start: async () => 1698019200, + start: 1698019200, meta: { methodology } @@ -103,7 +103,7 @@ const adapter: Adapter = { [CHAIN.FANTOM]: { fetch: graphs()(CHAIN.FANTOM), runAtCurrTime: true, - start: async () => 1698019200, + start: 1698019200, meta: { methodology } diff --git a/fees/intent-x/index.tsx b/fees/intent-x/index.tsx index 999a278c6f..17259a56cf 100644 --- a/fees/intent-x/index.tsx +++ b/fees/intent-x/index.tsx @@ -153,7 +153,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BASE]: { fetch: fetchVolume, - start: async () => 1698796800, + start: 1698796800, }, }, }; diff --git a/fees/joe-v2.1.ts b/fees/joe-v2.1.ts index a57e07b2b2..51343dbfc8 100644 --- a/fees/joe-v2.1.ts +++ b/fees/joe-v2.1.ts @@ -161,15 +161,15 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), - start: async () => 1682121600, + start: 1682121600, }, [CHAIN.BSC]: { fetch: graph(CHAIN.BSC), - start: async () => 1681084800, + start: 1681084800, }, [CHAIN.AVAX]: { fetch: graph(CHAIN.AVAX), - start: async () => 1682467200, + start: 1682467200, }, } }; diff --git a/fees/justlend.ts b/fees/justlend.ts index 5c7ac049e1..8c67b78187 100644 --- a/fees/justlend.ts +++ b/fees/justlend.ts @@ -250,7 +250,7 @@ const adapter: Adapter = { adapter: { [CHAIN.TRON]: { fetch: fetch, - start: async () => 1700352000, + start: 1700352000, // runAtCurrTime: true, }, }, diff --git a/fees/keom.ts b/fees/keom.ts index 2aabcc2f8c..9088f3a82b 100644 --- a/fees/keom.ts +++ b/fees/keom.ts @@ -59,15 +59,15 @@ const adapter: Adapter = { adapter: { [CHAIN.POLYGON]: { fetch: graphs(endpoints)(CHAIN.POLYGON), - start: async () => 1699520408, + start: 1699520408, }, [CHAIN.POLYGON_ZKEVM]: { fetch: graphs(endpoints)(CHAIN.POLYGON_ZKEVM), - start: async () => 1679921168, + start: 1679921168, }, [CHAIN.MANTA]: { fetch: graphs(endpoints)(CHAIN.MANTA), - start: async () => 1698838028, + start: 1698838028, }, }, }; diff --git a/fees/kiloex/index.ts b/fees/kiloex/index.ts index d8042137d4..98f0d0106f 100644 --- a/fees/kiloex/index.ts +++ b/fees/kiloex/index.ts @@ -44,13 +44,13 @@ const fetch = (chainId: string) => { const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { - fetch: fetch(CHAIN.BSC), start: async () => 1686528000 + fetch: fetch(CHAIN.BSC), start: 1686528000 }, [CHAIN.OP_BNB]: { - fetch: fetch(CHAIN.OP_BNB), start: async () => 1696636800 + fetch: fetch(CHAIN.OP_BNB), start: 1696636800 }, [CHAIN.MANTA]: { - fetch: fetch(CHAIN.MANTA), start: async () => 1698796800 + fetch: fetch(CHAIN.MANTA), start: 1698796800 }, }, }; diff --git a/fees/kinetix/index.ts b/fees/kinetix/index.ts index b6f719ec79..e7c3a1bbb7 100644 --- a/fees/kinetix/index.ts +++ b/fees/kinetix/index.ts @@ -47,7 +47,7 @@ const adapter: Adapter = { adapter: { [CHAIN.KAVA]: { fetch: graphs(endpoints)(CHAIN.KAVA), - start: async () => 1693267200, + start: 1693267200, meta: { methodology: "All mint, burn, marginAndLiquidation and swap fees are collected and the daily fee amount is determined. Daily revenue is calculated as 30% of the total fee.", diff --git a/fees/kperp-exchange.ts b/fees/kperp-exchange.ts index 1a8636bb4c..7309b904f5 100644 --- a/fees/kperp-exchange.ts +++ b/fees/kperp-exchange.ts @@ -48,7 +48,7 @@ const adapter: Adapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.KAVA]: { fetch: graphs(endpoints)(CHAIN.KAVA), - start: async () => 2578000, + start: 2578000, meta: { methodology: 'All mint, burn, marginAndLiquidation and swap fees are collected and the daily fee amount is determined. Daily revenue is calculated as 30% of the total fee.' } diff --git a/fees/ktx.ts b/fees/ktx.ts index edcb86dae1..69b8c6442f 100644 --- a/fees/ktx.ts +++ b/fees/ktx.ts @@ -70,21 +70,21 @@ const adapter: Adapter = { adapter: { [BSC]: { fetch: graphs(endpoints)(BSC), - start: async () => 1682870400, + start: 1682870400, meta: { methodology, }, }, [MANTLE]: { fetch: graphs(endpoints)(MANTLE), - start: async () => 1693843200, + start: 1693843200, meta: { methodology, }, }, [ARBITRUM]: { fetch: graphs(endpoints)(ARBITRUM), - start: async () => 1705248000, + start: 1705248000, meta: { methodology, }, diff --git a/fees/kwenta.ts b/fees/kwenta.ts index 259398ec66..c4fd90332a 100644 --- a/fees/kwenta.ts +++ b/fees/kwenta.ts @@ -30,7 +30,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.OPTIMISM]: { fetch: fetchData(CHAIN.OPTIMISM), - start: async () => 1682121600, + start: 1682121600, }, } }; diff --git a/fees/kyotoswap.ts b/fees/kyotoswap.ts index d0958a9a23..7b89cdee87 100644 --- a/fees/kyotoswap.ts +++ b/fees/kyotoswap.ts @@ -49,7 +49,7 @@ const adapter: Adapter = { adapter: Object.keys(endpoints).reduce((acc, chain) => { acc[chain] = { fetch: graphs(chain as Chain), - start: async () => startTimes[chain], + start: startTimes[chain], meta: { methodology, }, diff --git a/fees/level-finance.ts b/fees/level-finance.ts index 3f7c40516a..feb215d280 100644 --- a/fees/level-finance.ts +++ b/fees/level-finance.ts @@ -56,7 +56,7 @@ const adapter: Adapter = { adapter: { [BSC]: { fetch: graphs(endpoints)(BSC), - start: async () => 1672063200, + start: 1672063200, meta: { methodology: { Fees: 'All mint, burn, margin, liquidation and swap fees are collect', @@ -70,7 +70,7 @@ const adapter: Adapter = { }, [ARBITRUM]: { fetch: graphs(endpoints)(ARBITRUM), - start: async () => 1686344400, + start: 1686344400, meta: { methodology: { Fees: 'All mint, burn, margin, liquidation and swap fees are collect', diff --git a/fees/lexer/index.ts b/fees/lexer/index.ts index adda902135..69b14db023 100644 --- a/fees/lexer/index.ts +++ b/fees/lexer/index.ts @@ -71,7 +71,7 @@ const fetch: Fetch = async(timestamp): Promise => { const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { - start: async () => 1704758400, + start: 1704758400, fetch, meta:{ methodology: "api calls from grpahql" diff --git a/fees/liondex/index.ts b/fees/liondex/index.ts index d5fa08ec28..28f910c115 100644 --- a/fees/liondex/index.ts +++ b/fees/liondex/index.ts @@ -54,7 +54,7 @@ const adapter: Adapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [ARBITRUM]: { fetch: graphs(endpoints)(ARBITRUM), - start: async () => 1686614400, + start: 1686614400, meta: { methodology, }, diff --git a/fees/liquid-bolt.ts b/fees/liquid-bolt.ts index 607a1b5963..d931771937 100644 --- a/fees/liquid-bolt.ts +++ b/fees/liquid-bolt.ts @@ -50,7 +50,7 @@ const getAdapter = () => { const baseAdapter: BaseAdapter = { [CHAIN.FANTOM]: { fetch: fetch(CHAIN.FANTOM), - start: async () => 1669312800, + start: 1669312800, runAtCurrTime: true, meta: { methodology @@ -58,7 +58,7 @@ const getAdapter = () => { }, [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1675893600, + start: 1675893600, runAtCurrTime: true, meta: { methodology @@ -66,7 +66,7 @@ const getAdapter = () => { }, [CHAIN.BSC]: { fetch: fetch(CHAIN.BSC), - start: async () => 1669312800, + start: 1669312800, runAtCurrTime: true, meta: { methodology @@ -74,7 +74,7 @@ const getAdapter = () => { }, [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON), - start: async () => 1669312800, + start: 1669312800, runAtCurrTime: true, meta: { methodology diff --git a/fees/liquity.ts b/fees/liquity.ts index 2445f56bda..8fa4b83083 100644 --- a/fees/liquity.ts +++ b/fees/liquity.ts @@ -56,7 +56,7 @@ const adapter: Adapter = { dailyHoldersRevenue: dailyFee.toString(), }; }, - start: async () => 1575158400 + start: 1575158400 }, } } diff --git a/fees/llamalend.ts b/fees/llamalend.ts index b1802d4171..6e744ad3dd 100644 --- a/fees/llamalend.ts +++ b/fees/llamalend.ts @@ -53,7 +53,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: graphs(endpoints)(CHAIN.ETHEREUM), - start: async () => 1667260800, + start: 1667260800, meta: { methodology: { Fees: "Interest paid by borrowers", diff --git a/fees/lybra-finance.ts b/fees/lybra-finance.ts index 1eb0081dfb..b276fce114 100644 --- a/fees/lybra-finance.ts +++ b/fees/lybra-finance.ts @@ -50,7 +50,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1682294400, + start: 1682294400, }, } }; diff --git a/fees/lybra-v2.ts b/fees/lybra-v2.ts index 688ee432ea..54935880cb 100644 --- a/fees/lybra-v2.ts +++ b/fees/lybra-v2.ts @@ -50,7 +50,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1693440000, + start: 1693440000, }, } }; diff --git a/fees/lynex.ts b/fees/lynex.ts index 37d496be27..d13fba111c 100644 --- a/fees/lynex.ts +++ b/fees/lynex.ts @@ -52,7 +52,7 @@ const adapter: Adapter = { adapter: { [CHAIN.LINEA]: { fetch: fetch(CHAIN.LINEA), - start: async () => 1691394680, + start: 1691394680, }, }, }; diff --git a/fees/lyra.ts b/fees/lyra.ts index 690ffa96f4..57f5d21911 100644 --- a/fees/lyra.ts +++ b/fees/lyra.ts @@ -93,11 +93,11 @@ const adapter: Adapter = { adapter: { [OPTIMISM]: { fetch: graph(endpoints)(OPTIMISM), - start: async () => 1656154800, + start: 1656154800, }, [ARBITRUM]: { fetch: graph(endpoints)(ARBITRUM), - start: async () => 1674691200, + start: 1674691200, }, }, }; diff --git a/fees/mango-v4.ts b/fees/mango-v4.ts index 6d1c8fa6af..9a558e1619 100644 --- a/fees/mango-v4.ts +++ b/fees/mango-v4.ts @@ -51,7 +51,7 @@ const adapter: Adapter = { runAtCurrTime: true, customBackfill: undefined, fetch: fetchMangoStats, - start: async () => 0, + start: 0, meta: { methodology, }, diff --git a/fees/manta.ts b/fees/manta.ts index bd360f04b3..7b97de795d 100644 --- a/fees/manta.ts +++ b/fees/manta.ts @@ -109,7 +109,7 @@ const adapter: Adapter = { adapter: { [CHAIN.MANTA]: { fetch: fetch, - start: async () => 1694217600, + start: 1694217600, }, }, protocolType: ProtocolType.CHAIN, diff --git a/fees/maple-finance.ts b/fees/maple-finance.ts index 484a292001..f393a0be7b 100644 --- a/fees/maple-finance.ts +++ b/fees/maple-finance.ts @@ -130,7 +130,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees, - start: async () => 1672531200 + start: 1672531200 } } } diff --git a/fees/maverick.ts b/fees/maverick.ts index e3bcf518de..e6f12f76b6 100644 --- a/fees/maverick.ts +++ b/fees/maverick.ts @@ -14,28 +14,28 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFee(CHAIN.ETHEREUM), - start: async () => 1676851200, + start: 1676851200, meta: { methodology, }, }, [CHAIN.ERA]: { fetch: fetchFee(CHAIN.ERA), - start: async () => 1681257600, + start: 1681257600, meta: { methodology, }, }, [CHAIN.BSC]: { fetch: fetchFee(CHAIN.BSC), - start: async () => 29241049, + start: 29241049, meta: { methodology, }, }, [CHAIN.BASE]: { fetch: fetchFee(CHAIN.BASE), - start: async () => 1489614, + start: 1489614, meta: { methodology, }, diff --git a/fees/meowl/index.ts b/fees/meowl/index.ts index 6ad9d32ecb..052b801b70 100644 --- a/fees/meowl/index.ts +++ b/fees/meowl/index.ts @@ -12,7 +12,7 @@ const adapter: Adapter = { dailyRevenue: fees.toString(), }; }, - start: async () => 1685332595 + start: 1685332595 }, } } diff --git a/fees/meridian-trade.ts b/fees/meridian-trade.ts index 7975b5ba7b..bb02eb9726 100644 --- a/fees/meridian-trade.ts +++ b/fees/meridian-trade.ts @@ -59,7 +59,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BASE]: { fetch: graphs(endpoints)(CHAIN.BASE), - start: async () => 1691829006, + start: 1691829006, meta: { methodology } diff --git a/fees/merlin.ts b/fees/merlin.ts index 9ddf0b116e..12f3aabbf3 100644 --- a/fees/merlin.ts +++ b/fees/merlin.ts @@ -56,7 +56,7 @@ const adapter: Adapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.ERA]: { fetch: fetch(CHAIN.ERA), - start: async () => 1680274800, + start: 1680274800, }, }, }; diff --git a/fees/metavault-derivatives-v2/index.ts b/fees/metavault-derivatives-v2/index.ts index a525858144..2aac2caeac 100644 --- a/fees/metavault-derivatives-v2/index.ts +++ b/fees/metavault-derivatives-v2/index.ts @@ -49,7 +49,7 @@ const adapter: Adapter = { adapter: { [CHAIN.LINEA]: { fetch: graphs(endpoints)(CHAIN.LINEA), - start: async () => 1701950449, + start: 1701950449, meta: { methodology: "All treasuryFee, poolFee and keeperFee are collected", }, diff --git a/fees/metavault.trade/index.ts b/fees/metavault.trade/index.ts index ecc77f624c..32f680dbe4 100644 --- a/fees/metavault.trade/index.ts +++ b/fees/metavault.trade/index.ts @@ -46,7 +46,7 @@ const adapter: Adapter = { adapter: { [POLYGON]: { fetch: graphs(endpoints)(POLYGON), - start: async () => 1654041600, + start: 1654041600, meta: { methodology: 'All mint, burn, marginAndLiquidation and swap fees are collected and the daily fee amount is determined. Daily revenue is calculated as 30% of the total fee.' } diff --git a/fees/monarchpay/index.ts b/fees/monarchpay/index.ts index 92cce05303..2b749012b6 100644 --- a/fees/monarchpay/index.ts +++ b/fees/monarchpay/index.ts @@ -38,7 +38,7 @@ const adapter: Adapter = { adapter: { [CHAIN.KAVA]: { fetch: fetch, - start: async () => 1694044800 + start: 1694044800 }, } } diff --git a/fees/morphex-old.ts b/fees/morphex-old.ts index 31edb96e48..7415b911fe 100644 --- a/fees/morphex-old.ts +++ b/fees/morphex-old.ts @@ -60,7 +60,7 @@ const adapter: Adapter = { adapter: { [CHAIN.FANTOM]: { fetch: graphs(CHAIN.FANTOM), - start: async () => 1677883020, + start: 1677883020, meta: { methodology, }, diff --git a/fees/morphex.ts b/fees/morphex.ts index e583563383..1e61ece73b 100644 --- a/fees/morphex.ts +++ b/fees/morphex.ts @@ -62,14 +62,14 @@ const adapter: Adapter = { adapter: { [CHAIN.FANTOM]: { fetch: graphs(CHAIN.FANTOM), - start: async () => 1690020000, + start: 1690020000, meta: { methodology, }, }, [CHAIN.BSC]: { fetch: graphs(CHAIN.BSC), - start: async () => 1686783600, + start: 1686783600, meta: { methodology, }, diff --git a/fees/morpho-compound.ts b/fees/morpho-compound.ts index bb0c4c9b1e..ceb7ee5277 100644 --- a/fees/morpho-compound.ts +++ b/fees/morpho-compound.ts @@ -197,7 +197,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1697932800, + start: 1697932800, runAtCurrTime: true, }, }, diff --git a/fees/move-dollar.ts b/fees/move-dollar.ts index c405123d18..a677ef9a67 100644 --- a/fees/move-dollar.ts +++ b/fees/move-dollar.ts @@ -32,7 +32,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.APTOS]: { fetch, - start: async () => 1680652406 + start: 1680652406 }, }, }; diff --git a/fees/multichain/index.ts b/fees/multichain/index.ts index 849f44b9d1..aadcac5073 100644 --- a/fees/multichain/index.ts +++ b/fees/multichain/index.ts @@ -34,7 +34,7 @@ const adapter: Adapter = { ["anyswap"]: { fetch: fetch, runAtCurrTime: true, - start: async () => 0, + start: 0, }, }, } diff --git a/fees/mummy-finance.ts b/fees/mummy-finance.ts index 910b0dd66f..b85232639b 100644 --- a/fees/mummy-finance.ts +++ b/fees/mummy-finance.ts @@ -63,23 +63,19 @@ const graphs = (chain: Chain) => { }; }; -const getStartTimestamp = async (chain: string) => { - const startTimestamps: { [chain: string]: number } = { - [CHAIN.FANTOM]: 1670198400, - [CHAIN.OPTIMISM]: 1677603600, - }; - return startTimestamps[chain]; +const startTimestamps: { [chain: string]: number } = { + [CHAIN.FANTOM]: 1670198400, + [CHAIN.OPTIMISM]: 1677603600, }; - const adapter: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch: graphs(CHAIN.FANTOM), - start: async () => getStartTimestamp(CHAIN.FANTOM), + start: startTimestamps[CHAIN.FANTOM], }, [CHAIN.OPTIMISM]: { fetch: graphs(CHAIN.OPTIMISM), - start: async () => getStartTimestamp(CHAIN.OPTIMISM), + start: startTimestamps[CHAIN.OPTIMISM], }, }, }; diff --git a/fees/near/index.ts b/fees/near/index.ts index cf386e01cc..3529e3d7f2 100644 --- a/fees/near/index.ts +++ b/fees/near/index.ts @@ -30,7 +30,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.NEAR]: { fetch: fetchFees, - start: async () => 1595289600 + start: 1595289600 } }, protocolType: ProtocolType.CHAIN diff --git a/fees/none-trading-bot.ts b/fees/none-trading-bot.ts index f67d2a6eee..055fa2347e 100644 --- a/fees/none-trading-bot.ts +++ b/fees/none-trading-bot.ts @@ -60,7 +60,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1690675200, + start: 1690675200, }, }, }; diff --git a/fees/odos.ts b/fees/odos.ts index 9c995c9e73..5056e9364f 100644 --- a/fees/odos.ts +++ b/fees/odos.ts @@ -148,16 +148,16 @@ const graph = (chain: Chain) => { const adapter: SimpleAdapter = { adapter: { - [CHAIN.ETHEREUM]: { fetch: graph(CHAIN.ETHEREUM), start: async () => 1689292800 }, - [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), start: async () => 1689292800 }, - [CHAIN.OPTIMISM]: { fetch: graph(CHAIN.OPTIMISM), start: async () => 1689292800 }, - [CHAIN.BASE]: { fetch: graph(CHAIN.BASE), start: async () => 1689292800 }, - [CHAIN.POLYGON]: { fetch: graph(CHAIN.POLYGON), start: async () => 1689292800 }, - [CHAIN.AVAX]: { fetch: graph(CHAIN.AVAX), start: async () => 1689292800 }, - //[CHAIN.BSC]: { fetch: graph(CHAIN.BSC), start: async () => 1689292800 }, - [CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), start: async () => 1689292800 }, - //[CHAIN.ZKSYNC]: { fetch: graph(CHAIN.ZKSYNC), start: async () => 1689292800 }, - [CHAIN.POLYGON_ZKEVM]:{ fetch: graph(CHAIN.POLYGON_ZKEVM), start: async () => 1689292800 } + [CHAIN.ETHEREUM]: { fetch: graph(CHAIN.ETHEREUM), start: 1689292800 }, + [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), start: 1689292800 }, + [CHAIN.OPTIMISM]: { fetch: graph(CHAIN.OPTIMISM), start: 1689292800 }, + [CHAIN.BASE]: { fetch: graph(CHAIN.BASE), start: 1689292800 }, + [CHAIN.POLYGON]: { fetch: graph(CHAIN.POLYGON), start: 1689292800 }, + [CHAIN.AVAX]: { fetch: graph(CHAIN.AVAX), start: 1689292800 }, + //[CHAIN.BSC]: { fetch: graph(CHAIN.BSC), start: 1689292800 }, + [CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), start: 1689292800 }, + //[CHAIN.ZKSYNC]: { fetch: graph(CHAIN.ZKSYNC), start: 1689292800 }, + [CHAIN.POLYGON_ZKEVM]:{ fetch: graph(CHAIN.POLYGON_ZKEVM), start: 1689292800 } } }; diff --git a/fees/op-bnb.ts b/fees/op-bnb.ts index a163a481dc..3ed030955c 100644 --- a/fees/op-bnb.ts +++ b/fees/op-bnb.ts @@ -111,7 +111,7 @@ const adapter: Adapter = { adapter: { [CHAIN.OP_BNB]: { fetch: fetch, - start: async () => 1691971200, + start: 1691971200, }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/opensea/index.ts b/fees/opensea/index.ts index 337abf12fb..4008ec301e 100644 --- a/fees/opensea/index.ts +++ b/fees/opensea/index.ts @@ -36,7 +36,7 @@ const adapter: Adapter = { seaport: { [CHAIN.ETHEREUM]: { fetch: graphs(seaportEndpoints)(CHAIN.ETHEREUM), - start: async () => 1655055510, + start: 1655055510, }, } } diff --git a/fees/optimism.ts b/fees/optimism.ts index 5f0bfb2910..c6cf3089c1 100644 --- a/fees/optimism.ts +++ b/fees/optimism.ts @@ -147,7 +147,7 @@ const adapter: Adapter = { adapter: { [OPTIMISM]: { fetch: feesAdapter, - start: async () => 1598671449, + start: 1598671449, }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/osmosis.ts b/fees/osmosis.ts index 33d3bcfca6..71f9c34981 100644 --- a/fees/osmosis.ts +++ b/fees/osmosis.ts @@ -35,7 +35,7 @@ const adapter: Adapter = { [CHAIN.COSMOS]: { fetch, runAtCurrTime: true, - start: async () => 1665964800, + start: 1665964800, }, } } diff --git a/fees/paal-ai/index.ts b/fees/paal-ai/index.ts index 4b724c2dfa..4fea072979 100644 --- a/fees/paal-ai/index.ts +++ b/fees/paal-ai/index.ts @@ -96,7 +96,7 @@ const adapter: Adapter = { dailyFees: dailyFees.toString(), }; }, - start: async () => 1690070400, + start: 1690070400, }, }, } diff --git a/fees/pact.ts b/fees/pact.ts index e989b6f73e..0aba7c465f 100644 --- a/fees/pact.ts +++ b/fees/pact.ts @@ -19,7 +19,7 @@ const adapters: SimpleAdapter = { adapter:{ [CHAIN.ALGORAND]: { fetch: fetchFees, - start: async () => 1693699200, + start: 1693699200, runAtCurrTime: true } } diff --git a/fees/pearlfi.ts b/fees/pearlfi.ts index 51b8f53391..8987d5d51c 100644 --- a/fees/pearlfi.ts +++ b/fees/pearlfi.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.POLYGON]: { fetch: getDexFeesExports({ chain: CHAIN.POLYGON, factory: FACTORY_ADDRESS,}), - start: async () => 1686268800, + start: 1686268800, }, } }; diff --git a/fees/pendle.ts b/fees/pendle.ts index 42fe890ecb..3d429d1cff 100644 --- a/fees/pendle.ts +++ b/fees/pendle.ts @@ -158,19 +158,19 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch(CHAIN.ETHEREUM), - start: async () => 1686268800, + start: 1686268800, }, [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1686268800, + start: 1686268800, }, [CHAIN.BSC]: { fetch: fetch(CHAIN.BSC), - start: async () => 1686268800, + start: 1686268800, }, [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1691733600, + start: 1691733600, } } }; diff --git a/fees/pepe-swaves/index.ts b/fees/pepe-swaves/index.ts index 9c4a84c8ca..f8408405f1 100644 --- a/fees/pepe-swaves/index.ts +++ b/fees/pepe-swaves/index.ts @@ -81,7 +81,7 @@ const adapter: Adapter = { adapter: { [CHAIN.WAVES]: { fetch, - start: async () => 1667250000 // Mon Oct 31 2022 21:00:00 GMT+0000 + start: 1667250000 // Mon Oct 31 2022 21:00:00 GMT+0000 }, }, } diff --git a/fees/perp88.ts b/fees/perp88.ts index af76897b0e..b08734b8b0 100644 --- a/fees/perp88.ts +++ b/fees/perp88.ts @@ -102,11 +102,11 @@ const adapter: Adapter = { adapter: { [CHAIN.POLYGON]: { fetch: graphs(endpoints)(CHAIN.POLYGON), - start: async () => 1668643200, + start: 1668643200, }, [CHAIN.ARBITRUM]: { fetch: graphs(endpoints)(CHAIN.ARBITRUM), - start: async () => 1687392000, + start: 1687392000, } }, }; diff --git a/fees/perpetual-protocol.ts b/fees/perpetual-protocol.ts index 79969302ea..d771a1ccb7 100644 --- a/fees/perpetual-protocol.ts +++ b/fees/perpetual-protocol.ts @@ -56,7 +56,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetchFees, - start: async () => 1672531200 + start: 1672531200 } } } diff --git a/fees/pharaoh-exchange.ts b/fees/pharaoh-exchange.ts index 82992d2e31..c00c818e5b 100644 --- a/fees/pharaoh-exchange.ts +++ b/fees/pharaoh-exchange.ts @@ -50,7 +50,7 @@ const v2Graphs = getGraphDimensions({ const adapter: SimpleAdapter = { adapter: { [CHAIN.AVAX]: {fetch: v2Graphs(AVAX), - start: async () => startTimeV2[CHAIN.AVAX], + start: startTimeV2[CHAIN.AVAX], meta: { methodology: { ...methodology, diff --git a/fees/pika-protocol-v4.ts b/fees/pika-protocol-v4.ts index a1d2c4faa0..99242e67f6 100644 --- a/fees/pika-protocol-v4.ts +++ b/fees/pika-protocol-v4.ts @@ -121,7 +121,7 @@ const adapter: Adapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1687910400, + start: 1687910400, }, }, }; diff --git a/fees/pika-protocol.ts b/fees/pika-protocol.ts index 5a92331ec2..12494bdeb7 100644 --- a/fees/pika-protocol.ts +++ b/fees/pika-protocol.ts @@ -122,7 +122,7 @@ const adapter: Adapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1658534400, + start: 1658534400, }, }, }; diff --git a/fees/pinnako.ts b/fees/pinnako.ts index 2f68721e6b..ea77994393 100644 --- a/fees/pinnako.ts +++ b/fees/pinnako.ts @@ -50,7 +50,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ERA]: { fetch: graphs(endpoints)(CHAIN.ERA), - start: async () => 1670659200, + start: 1670659200, meta: { methodology: { Fees: "All mint, burn, margin and liquidation and swap fees are collected", diff --git a/fees/plenty.ts b/fees/plenty.ts index a312509b30..4681dc7e0a 100644 --- a/fees/plenty.ts +++ b/fees/plenty.ts @@ -23,7 +23,7 @@ const adapter: Adapter = { adapter: { [CHAIN.TEZOS]: { fetch: fetch, - start: async () => 1672531200, + start: 1672531200, runAtCurrTime: true, }, }, diff --git a/fees/plexus.ts b/fees/plexus.ts index 56d4074ae6..1de4dc0b1e 100644 --- a/fees/plexus.ts +++ b/fees/plexus.ts @@ -40,7 +40,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: fetch(ChainId[chain]), - start: async () => 1675209600, + start: 1675209600, }, }; }, {}), diff --git a/fees/polygon.ts b/fees/polygon.ts index b02bd030d7..2b8071b862 100644 --- a/fees/polygon.ts +++ b/fees/polygon.ts @@ -68,8 +68,8 @@ const adapter: Adapter = { throw error } }, - // start: async () => 1575158400, - start: async () => 1672531200 + // start: 1575158400, + start: 1672531200 }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/post-tech.ts b/fees/post-tech.ts index 527f23cae0..805c64562b 100644 --- a/fees/post-tech.ts +++ b/fees/post-tech.ts @@ -67,7 +67,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetchFees, - start: async () => 1693267200 + start: 1693267200 } } } diff --git a/fees/predy-finance/index.ts b/fees/predy-finance/index.ts index bae8745c10..b41279485a 100644 --- a/fees/predy-finance/index.ts +++ b/fees/predy-finance/index.ts @@ -434,7 +434,7 @@ const adapter: BreakdownAdapter = { v5: { [CHAIN.ARBITRUM]: { fetch: graphs(v5endpoints)(CHAIN.ARBITRUM), - start: async () => 1688490168, + start: 1688490168, }, }, }, diff --git a/fees/premia/index.ts b/fees/premia/index.ts index 478cb822a4..5f6c1b58a5 100644 --- a/fees/premia/index.ts +++ b/fees/premia/index.ts @@ -38,7 +38,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: async (ts: number) => await getV2Data(v2Endpoints[chain], ts), - start: async () => v2StartTimes[chain], + start: v2StartTimes[chain], meta: { methodology: { UserFees: @@ -58,7 +58,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: async (ts: number) => await getV3Data(v3Endpoints[chain], ts), - start: async () => v3StartTimes[chain], + start: v3StartTimes[chain], meta: { methodology: { UserFees: diff --git a/fees/prisma-finance.ts b/fees/prisma-finance.ts index b573dce20c..1ac73c212e 100644 --- a/fees/prisma-finance.ts +++ b/fees/prisma-finance.ts @@ -56,7 +56,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1693440000, + start: 1693440000, } } } diff --git a/fees/qidao.ts b/fees/qidao.ts index 95a54b99ce..1cb110cc36 100644 --- a/fees/qidao.ts +++ b/fees/qidao.ts @@ -122,23 +122,23 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1691193600, + start: 1691193600, }, [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON), - start: async () => 1691193600, + start: 1691193600, }, [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1691193600, + start: 1691193600, }, [CHAIN.AVAX]: { fetch: fetch(CHAIN.AVAX), - start: async () => 1691193600, + start: 1691193600, }, [CHAIN.XDAI]: { fetch: fetch(CHAIN.XDAI), - start: async () => 1691193600, + start: 1691193600, }, } }; diff --git a/fees/quickswap.ts b/fees/quickswap.ts index aaf403a052..b4b914de1d 100644 --- a/fees/quickswap.ts +++ b/fees/quickswap.ts @@ -79,7 +79,7 @@ const adapter: BreakdownAdapter = { v2: { [CHAIN.POLYGON]: { fetch: v2Graph(CHAIN.POLYGON), - start: async () => 1602118043, + start: 1602118043, meta: { methodology }, @@ -88,7 +88,7 @@ const adapter: BreakdownAdapter = { v3: Object.keys(v3Endpoints).reduce((acc, chain) => { acc[chain] = { fetch: v3Graphs(chain as Chain), - start: async () => startTimeV3[chain], + start: startTimeV3[chain], meta: { methodology } diff --git a/fees/railgun.ts b/fees/railgun.ts index 550d0c0030..68c138c514 100644 --- a/fees/railgun.ts +++ b/fees/railgun.ts @@ -109,19 +109,19 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees(CHAIN.ETHEREUM), - start: async () => 1651363200, + start: 1651363200, }, [CHAIN.ARBITRUM]: { fetch: fetchFees(CHAIN.ARBITRUM), - start: async () => 1674864000, + start: 1674864000, }, [CHAIN.POLYGON]: { fetch: fetchFees(CHAIN.POLYGON), - start: async () => 1682899200, + start: 1682899200, }, [CHAIN.BSC]: { fetch: fetchFees(CHAIN.BSC), - start: async () => 1682899200, + start: 1682899200, }, } } diff --git a/fees/ramses-exchange-v2/index.ts b/fees/ramses-exchange-v2/index.ts index 3b266cbfef..ea350246b3 100644 --- a/fees/ramses-exchange-v2/index.ts +++ b/fees/ramses-exchange-v2/index.ts @@ -75,7 +75,7 @@ const v2Graphs = getGraphDimensions({ return combinedResult; }, - start: async () => startTimeV2[CHAIN.ARBITRUM], + start: startTimeV2[CHAIN.ARBITRUM], meta: { methodology: { ...methodology, diff --git a/fees/ramses-exchange.ts b/fees/ramses-exchange.ts index 79db4df849..449455c6c0 100644 --- a/fees/ramses-exchange.ts +++ b/fees/ramses-exchange.ts @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getDexFeesExports({ chain: CHAIN.ARBITRUM, factory: FACTORY_ADDRESS,}), - start: async () => 1678838400, + start: 1678838400, }, } }; diff --git a/fees/reserve/index.ts b/fees/reserve/index.ts index 12064e23f4..d1262b9f34 100644 --- a/fees/reserve/index.ts +++ b/fees/reserve/index.ts @@ -111,7 +111,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: getFees(), - start: async () => 1681850303, + start: 1681850303, }, }, }; diff --git a/fees/rollbit.ts b/fees/rollbit.ts index 36cd5d02b3..14b5a3bbd6 100644 --- a/fees/rollbit.ts +++ b/fees/rollbit.ts @@ -23,7 +23,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.SOLANA]: { fetch, - start: async () => 1643673600, + start: 1643673600, meta: { methodology: { Fees: "Money that users lose gambling", diff --git a/fees/rollup-finace.ts b/fees/rollup-finace.ts index e2467a7e26..99799a978e 100644 --- a/fees/rollup-finace.ts +++ b/fees/rollup-finace.ts @@ -66,7 +66,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ERA]: { fetch: graphs(endpoints)(CHAIN.ERA), - start: async () => 1682035200, + start: 1682035200, }, } } diff --git a/fees/sharesgram.ts b/fees/sharesgram.ts index 6bffadc4a0..9c2eb4be44 100644 --- a/fees/sharesgram.ts +++ b/fees/sharesgram.ts @@ -71,7 +71,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BASE]: { fetch, - start: async () => 1693180800 + start: 1693180800 } } } diff --git a/fees/shoebillFinance-v2/index.ts b/fees/shoebillFinance-v2/index.ts index 7a317222dd..8a0f4c685a 100644 --- a/fees/shoebillFinance-v2/index.ts +++ b/fees/shoebillFinance-v2/index.ts @@ -161,12 +161,12 @@ const adapter: Adapter = { adapter: { [CHAIN.MANTA]: { fetch: fetchManta, - start: async () => 1703980800, + start: 1703980800, runAtCurrTime: true, }, [CHAIN.WEMIX]: { fetch: fetchWEMIX, - start: async () => 1703980800 , + start: 1703980800 , runAtCurrTime: true, } }, diff --git a/fees/shuriken.ts b/fees/shuriken.ts index 47935ebfb0..9e0839b565 100644 --- a/fees/shuriken.ts +++ b/fees/shuriken.ts @@ -65,7 +65,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1697155200, + start: 1697155200, }, }, }; diff --git a/fees/sns.ts b/fees/sns.ts index dbe1e77450..ceae6fc206 100644 --- a/fees/sns.ts +++ b/fees/sns.ts @@ -33,7 +33,7 @@ const adapter: Adapter = { adapter: { [CHAIN.SOLANA]: { fetch, - start: async () => 1624941677, + start: 1624941677, meta: { methodology, }, diff --git a/fees/sobal.ts b/fees/sobal.ts index f383d4acff..fa263cfcde 100644 --- a/fees/sobal.ts +++ b/fees/sobal.ts @@ -69,14 +69,14 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.NEON]: { fetch: v2Graphs(v2Endpoints)(CHAIN.NEON), - start: async () => 1689613200, // 17TH JULY 5PM GMT + start: 1689613200, // 17TH JULY 5PM GMT meta: { methodology } }, // [CHAIN.BASE]: { // fetch: v2Graphs(v2Endpoints)(CHAIN.BASE), - // start: async () => 1690850000, // 1ST AUG 12:33 AM GMT + // start: 1690850000, // 1ST AUG 12:33 AM GMT // meta: { // methodology // } diff --git a/fees/solana.ts b/fees/solana.ts index 645a03dabb..4a87033194 100644 --- a/fees/solana.ts +++ b/fees/solana.ts @@ -34,7 +34,7 @@ const adapter: Adapter = { dailyHoldersRevenue: dailyRevenue.toString(), }; }, - start: async () => 1610841600 + start: 1610841600 }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/solend.ts b/fees/solend.ts index 5f2a62923b..a238d365cc 100644 --- a/fees/solend.ts +++ b/fees/solend.ts @@ -62,7 +62,7 @@ const adapter: Adapter = { runAtCurrTime: false, customBackfill: undefined, fetch: fetchSolendStats, - start: async () => 1675123053, + start: 1675123053, meta: { methodology, }, diff --git a/fees/solidlizard.ts b/fees/solidlizard.ts index b37ed8b88e..5d20587911 100644 --- a/fees/solidlizard.ts +++ b/fees/solidlizard.ts @@ -82,7 +82,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: getFees(CHAIN.ARBITRUM), - start: async () => 1675036800, + start: 1675036800, }, }, }; diff --git a/fees/solidly-v3.ts b/fees/solidly-v3.ts index e3a8dd1a08..bf132882b9 100644 --- a/fees/solidly-v3.ts +++ b/fees/solidly-v3.ts @@ -56,23 +56,23 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch(CHAIN.ETHEREUM), - start: async () => 1693526400, + start: 1693526400, }, [CHAIN.BASE]: { fetch: fetch(CHAIN.BASE), - start: async () => 0, + start: 0, }, [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 0, + start: 0, }, [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 0, + start: 0, }, [CHAIN.FANTOM]: { fetch: fetch(CHAIN.FANTOM), - start: async () => 0, + start: 0, }, }, }; diff --git a/fees/solidlydex.ts b/fees/solidlydex.ts index 90c2751d8b..62da349ea6 100644 --- a/fees/solidlydex.ts +++ b/fees/solidlydex.ts @@ -69,7 +69,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1672444800 + start: 1672444800 }, } } diff --git a/fees/sonne-finance/index.ts b/fees/sonne-finance/index.ts index b5e1730849..272e9bbd5e 100644 --- a/fees/sonne-finance/index.ts +++ b/fees/sonne-finance/index.ts @@ -157,7 +157,7 @@ const adapter: Adapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetch, - start: async () => 1664582400, + start: 1664582400, // runAtCurrTime: true, }, }, diff --git a/fees/stakewise.ts b/fees/stakewise.ts index 9663355961..2a0cd6b5f9 100644 --- a/fees/stakewise.ts +++ b/fees/stakewise.ts @@ -78,7 +78,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees, - start: async () => 1641254400 + start: 1641254400 } } } diff --git a/fees/stealcam.ts b/fees/stealcam.ts index d7363fed95..2d4b66e0dd 100644 --- a/fees/stealcam.ts +++ b/fees/stealcam.ts @@ -43,7 +43,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch, - start: async () => 1678406400, + start: 1678406400, }, } }; diff --git a/fees/stormtrade/index.ts b/fees/stormtrade/index.ts index f3382619d6..21a4f1b779 100644 --- a/fees/stormtrade/index.ts +++ b/fees/stormtrade/index.ts @@ -6,7 +6,7 @@ export default { adapter: { [CHAIN.TON]: { runAtCurrTime: true, - start: async () => 1700000000, + start: 1700000000, meta: { methodology: { Fees: 'Traders pay opening and closing fees', diff --git a/fees/stride.ts b/fees/stride.ts index a508e29c2f..e9544134fe 100644 --- a/fees/stride.ts +++ b/fees/stride.ts @@ -42,49 +42,49 @@ const adapter: Adapter = { [CHAIN.COSMOS]: { fetch: fetch("cosmos"), runAtCurrTime: true, - start: async () => 0, + start: 0, meta, }, osmosis: { fetch: fetch("osmosis"), runAtCurrTime: true, - start: async () => 0, + start: 0, meta, }, juno: { fetch: fetch("juno"), runAtCurrTime: true, - start: async () => 0, + start: 0, meta, }, stargaze: { fetch: fetch("stargaze"), runAtCurrTime: true, - start: async () => 0, + start: 0, meta, }, terra: { fetch: fetch("terra"), runAtCurrTime: true, - start: async () => 0, + start: 0, meta, }, evmos: { fetch: fetch("evmos"), runAtCurrTime: true, - start: async () => 0, + start: 0, meta, }, injective: { fetch: fetch("injective"), runAtCurrTime: true, - start: async () => 0, + start: 0, meta, }, umee: { fetch: fetch("umee"), runAtCurrTime: true, - start: async () => 0, + start: 0, meta, }, }, diff --git a/fees/substanceX/index.ts b/fees/substanceX/index.ts index 9660695439..570e00af02 100644 --- a/fees/substanceX/index.ts +++ b/fees/substanceX/index.ts @@ -109,7 +109,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graphs(endpoints)(CHAIN.ARBITRUM), - start: async () => 1700323200, + start: 1700323200, }, }, }; diff --git a/fees/sudoswap-v1.ts b/fees/sudoswap-v1.ts index b167be2f8d..b06ac2cd0f 100644 --- a/fees/sudoswap-v1.ts +++ b/fees/sudoswap-v1.ts @@ -40,7 +40,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees, - start: async () => 1672531200 + start: 1672531200 }, }, }; diff --git a/fees/sudoswap-v2.ts b/fees/sudoswap-v2.ts index ff2b7eee24..c6a5cc789d 100644 --- a/fees/sudoswap-v2.ts +++ b/fees/sudoswap-v2.ts @@ -73,7 +73,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees, - start: async () => 1684627200 + start: 1684627200 }, }, }; diff --git a/fees/surfone/index.ts b/fees/surfone/index.ts index 388c9eff0e..0e09d485f8 100644 --- a/fees/surfone/index.ts +++ b/fees/surfone/index.ts @@ -32,7 +32,7 @@ const adapter: SimpleAdapter = { [CHAIN.BASE]: { fetch: fetch(), runAtCurrTime: true, - start: async () => 7963804, + start: 7963804, } }, }; diff --git a/fees/synapse/index.ts b/fees/synapse/index.ts index 20c1e6c121..3c23e7b1d1 100644 --- a/fees/synapse/index.ts +++ b/fees/synapse/index.ts @@ -102,7 +102,7 @@ const adapter: Adapter = { ...acc, [chain]: { fetch: graphs(chain as Chain), - start: async () => 1629504000, + start: 1629504000, meta: { methodology } diff --git a/fees/synthetix.ts b/fees/synthetix.ts index e867438d31..8fd3a9379b 100644 --- a/fees/synthetix.ts +++ b/fees/synthetix.ts @@ -76,14 +76,14 @@ const adapter: Adapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: graphs()(CHAIN.ETHEREUM), - start: async () => 1653523200, + start: 1653523200, meta: { methodology } }, [CHAIN.OPTIMISM]: { fetch: graphs()(CHAIN.OPTIMISM), - start: async () => 1636606800, + start: 1636606800, meta: { methodology } diff --git a/fees/tangible-rwa.ts b/fees/tangible-rwa.ts index 6b777e2972..b8d9c115da 100644 --- a/fees/tangible-rwa.ts +++ b/fees/tangible-rwa.ts @@ -51,7 +51,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.POLYGON]: { fetch: fetchFees, - start: async () => 1682899200, + start: 1682899200, } } } diff --git a/fees/tarot.ts b/fees/tarot.ts index 8893c6549f..05a1061a93 100644 --- a/fees/tarot.ts +++ b/fees/tarot.ts @@ -38,12 +38,12 @@ const adapter: Adapter = { [FANTOM]: { fetch: graphs()(CHAIN.FANTOM), runAtCurrTime: true, - start: async () => 0, + start: 0, }, [OPTIMISM]: { fetch: graphs()(CHAIN.OPTIMISM), runAtCurrTime: true, - start: async () => 0, + start: 0, }, }, } diff --git a/fees/thalaswap.ts b/fees/thalaswap.ts index 1f5559d8c0..2b410f0e50 100644 --- a/fees/thalaswap.ts +++ b/fees/thalaswap.ts @@ -43,7 +43,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.APTOS]: { fetch, - start: async () => 1680480000 + start: 1680480000 }, }, }; diff --git a/fees/thena-perp.ts b/fees/thena-perp.ts index 5b7afcf602..cdde02246d 100644 --- a/fees/thena-perp.ts +++ b/fees/thena-perp.ts @@ -106,7 +106,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.BSC]: { fetch: fetchVolume, - start: async () => 1687880277 + start: 1687880277 } } } diff --git a/fees/thena-v3.ts b/fees/thena-v3.ts index 50ae4e2f21..7c0224307e 100644 --- a/fees/thena-v3.ts +++ b/fees/thena-v3.ts @@ -52,7 +52,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BSC]: { fetch: fetch(CHAIN.BSC), - start: async () => 1681516800, + start: 1681516800, }, }, }; diff --git a/fees/thena.ts b/fees/thena.ts index 8048dde309..f763f00b12 100644 --- a/fees/thena.ts +++ b/fees/thena.ts @@ -76,7 +76,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BSC]: { fetch: getFees(), - start: async () => 1672790400, + start: 1672790400, meta: { methodology } diff --git a/fees/thick.ts b/fees/thick.ts index 0e34a2d0ce..2151594dc7 100644 --- a/fees/thick.ts +++ b/fees/thick.ts @@ -17,17 +17,17 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.FANTOM]: { fetch: getDexFeesExportsV3({ chain: CHAIN.FANTOM, factory: poolFactoryAddress, factoryFromBlock: 70309749}), - start: async () => 1699300000, + start: 1699300000, meta: { methodology: { ...methodology, } }, }, [CHAIN.ARBITRUM]: { fetch: getDexFeesExportsV3({ chain: CHAIN.ARBITRUM, factory: poolFactoryAddress, factoryFromBlock: 148243463}), - start: async () => 1699300000, + start: 1699300000, meta: { methodology: { ...methodology, } }, }, [CHAIN.BASE]: { fetch: getDexFeesExportsV3({ chain: CHAIN.BASE, factory: poolFactoryAddress, factoryFromBlock: 6314325}), - start: async () => 1699300000, + start: 1699300000, meta: { methodology: { ...methodology, } }, } } diff --git a/fees/thorswap/index.ts b/fees/thorswap/index.ts index 9001c869b8..2836756913 100644 --- a/fees/thorswap/index.ts +++ b/fees/thorswap/index.ts @@ -84,7 +84,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.THORCHAIN]: { fetch: fetchFees, - start: async () => 1618099200, + start: 1618099200, } } } diff --git a/fees/tigris/index.ts b/fees/tigris/index.ts index 1bb32d5c9d..a6ccbe9349 100644 --- a/fees/tigris/index.ts +++ b/fees/tigris/index.ts @@ -93,11 +93,11 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1663023600, + start: 1663023600, }, [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON), - start: async () => 1663023600, + start: 1663023600, } } } diff --git a/fees/touch.fan.ts b/fees/touch.fan.ts index f4af7b4383..0569ef1510 100644 --- a/fees/touch.fan.ts +++ b/fees/touch.fan.ts @@ -109,7 +109,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ERA]: { fetch: fetch, - start: async () => 1698494400, + start: 1698494400, }, } } diff --git a/fees/traderjoe.ts b/fees/traderjoe.ts index ed4f2399b3..21c3ea62e8 100644 --- a/fees/traderjoe.ts +++ b/fees/traderjoe.ts @@ -61,15 +61,15 @@ const adapter: Adapter = { v2: { [CHAIN.AVAX]: { fetch: graph(CHAIN.AVAX), - start: async () => 1669420800 + start: 1669420800 }, [CHAIN.ARBITRUM]: { fetch: graph(CHAIN.ARBITRUM), - start: async () => 1672012800 + start: 1672012800 }, [CHAIN.BSC]: { fetch: graph(CHAIN.BSC), - start: async () => 1678147200 + start: 1678147200 } } } diff --git a/fees/tron.ts b/fees/tron.ts index 0e72429e9d..1c92131294 100644 --- a/fees/tron.ts +++ b/fees/tron.ts @@ -22,7 +22,7 @@ const adapter: Adapter = { dailyHoldersRevenue: usdFees, }; }, - start: async () => 1575158400 + start: 1575158400 }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/unibot.ts b/fees/unibot.ts index 79bc46d8e5..57a5751afb 100644 --- a/fees/unibot.ts +++ b/fees/unibot.ts @@ -120,7 +120,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetch, - start: async () => 1684972800, + start: 1684972800, }, }, }; diff --git a/fees/unidex.ts b/fees/unidex.ts index 4800834cb4..6a715fc209 100644 --- a/fees/unidex.ts +++ b/fees/unidex.ts @@ -75,49 +75,49 @@ const adapter: Adapter = { adapter: { [CHAIN.OPTIMISM]: { fetch: fetch(CHAIN.OPTIMISM), - start: async () => 1687422746, + start: 1687422746, meta: { methodology, }, }, [CHAIN.ERA]: { fetch: fetch(CHAIN.ERA), - start: async () => 1687422746, + start: 1687422746, meta: { methodology, }, }, [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1687422746, + start: 1687422746, meta: { methodology, }, }, [CHAIN.BASE]: { fetch: fetch(CHAIN.BASE), - start: async () => 1687422746, + start: 1687422746, meta: { methodology, }, }, [CHAIN.FANTOM]: { fetch: fetch(CHAIN.FANTOM), - start: async () => 1687422746, + start: 1687422746, meta: { methodology, }, }, [CHAIN.METIS]: { fetch: fetch(CHAIN.METIS), - start: async () => 1687898060, + start: 1687898060, meta: { methodology, }, }, [CHAIN.EVMOS]: { fetch: fetch(CHAIN.EVMOS), - start: async () => 1700104066, + start: 1700104066, meta: { methodology, }, diff --git a/fees/uniswap-lab.ts b/fees/uniswap-lab.ts index cd64b3d5d5..d9633f2cca 100644 --- a/fees/uniswap-lab.ts +++ b/fees/uniswap-lab.ts @@ -106,19 +106,19 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchFees(CHAIN.ETHEREUM), - start: async () => 1696896000 + start: 1696896000 }, [CHAIN.OPTIMISM]: { fetch: fetchFees(CHAIN.OPTIMISM), - start: async () => 1696896000 + start: 1696896000 }, [CHAIN.POLYGON]: { fetch: fetchFees(CHAIN.POLYGON), - start: async () => 1696896000 + start: 1696896000 }, [CHAIN.ARBITRUM]: { fetch: fetchFees(CHAIN.ARBITRUM), - start: async () => 1696896000 + start: 1696896000 } } } diff --git a/fees/unlimited-network.ts b/fees/unlimited-network.ts index 4f6f123d6a..7798cce817 100644 --- a/fees/unlimited-network.ts +++ b/fees/unlimited-network.ts @@ -74,7 +74,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graphs(endpoints)(CHAIN.ARBITRUM), - start: async () => 1684713600, + start: 1684713600, }, }, } diff --git a/fees/up-vs-down-game.ts b/fees/up-vs-down-game.ts index a2e7d3b68e..c6cdd3893f 100644 --- a/fees/up-vs-down-game.ts +++ b/fees/up-vs-down-game.ts @@ -41,7 +41,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.POLYGON]: { fetch: fetchFees, - start: async () => 1691625600, + start: 1691625600, } } } diff --git a/fees/usdo.ts b/fees/usdo.ts index dc3689d551..2c24fd1caa 100644 --- a/fees/usdo.ts +++ b/fees/usdo.ts @@ -135,7 +135,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ONUS]: { fetch, - start: async () => 1680307200, + start: 1680307200, }, }, } diff --git a/fees/valas-finance.ts b/fees/valas-finance.ts index b8ec2de7c6..3150bbdfe6 100644 --- a/fees/valas-finance.ts +++ b/fees/valas-finance.ts @@ -42,7 +42,7 @@ const adapter: Adapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.BSC]: { fetch: graphs()(CHAIN.BSC), - start: async () => 1647734400, + start: 1647734400, }, }, } diff --git a/fees/valorem/index.ts b/fees/valorem/index.ts index 9c48c0969f..d4f00f31a7 100644 --- a/fees/valorem/index.ts +++ b/fees/valorem/index.ts @@ -108,7 +108,7 @@ const adapter: Adapter = { adapter: { [ARBITRUM]: { fetch: graphOptions(endpoints)(ARBITRUM), - start: async () => OSE_DEPLOY_TIMESTAMP_BY_CHAIN[ARBITRUM], + start: OSE_DEPLOY_TIMESTAMP_BY_CHAIN[ARBITRUM], meta: { methodology, }, diff --git a/fees/vela/index.ts b/fees/vela/index.ts index d618bad8a6..4adb134228 100644 --- a/fees/vela/index.ts +++ b/fees/vela/index.ts @@ -39,7 +39,7 @@ const adapter: Adapter = { adapter: { [ARBITRUM]: { fetch: graphs(endpoints)(ARBITRUM), - start: async () => 1687806000, + start: 1687806000, meta: { methodology, }, diff --git a/fees/velodrome-v2/index.ts b/fees/velodrome-v2/index.ts index ee3d724745..9db2cf5e23 100644 --- a/fees/velodrome-v2/index.ts +++ b/fees/velodrome-v2/index.ts @@ -27,7 +27,7 @@ const adapter: Adapter = { adapter: { [OPTIMISM]: { fetch: getFees, - start: async () => 1677110400, // TODO: Add accurate timestamp + start: 1677110400, // TODO: Add accurate timestamp }, }, }; diff --git a/fees/velodrome/index.ts b/fees/velodrome/index.ts index 9c9ad0efb4..cd05e69db0 100644 --- a/fees/velodrome/index.ts +++ b/fees/velodrome/index.ts @@ -20,7 +20,7 @@ const adapter: Adapter = { adapter: { [OPTIMISM]: { fetch: getFees, - start: async () => 1677110400, // TODO: Add accurate timestamp + start: 1677110400, // TODO: Add accurate timestamp }, }, }; diff --git a/fees/velodrome/velodrome.ts b/fees/velodrome/velodrome.ts index e4c6854421..de3a2b4415 100644 --- a/fees/velodrome/velodrome.ts +++ b/fees/velodrome/velodrome.ts @@ -69,7 +69,7 @@ export const fetchV1 = () => { // adapter: { // [OPTIMISM]: { // fetch: getFees(), -// start: async () => 1677110400, // TODO: Add accurate timestamp +// start: 1677110400, // TODO: Add accurate timestamp // }, // }, // }; diff --git a/fees/venus-finance.ts b/fees/venus-finance.ts index 77e56de71b..8bfe7fc132 100644 --- a/fees/venus-finance.ts +++ b/fees/venus-finance.ts @@ -197,7 +197,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BSC]: { fetch: fetch, - start: async () => 1691798400, + start: 1691798400, // runAtCurrTime: true, }, }, diff --git a/fees/vertex-protocol.ts b/fees/vertex-protocol.ts index 5163f76744..0c0284848b 100644 --- a/fees/vertex-protocol.ts +++ b/fees/vertex-protocol.ts @@ -119,7 +119,7 @@ const adapter: Adapter = { [CHAIN.ARBITRUM]: { fetch: fetch, runAtCurrTime: true, - start: async () => 1682514000, + start: 1682514000, }, }, }; diff --git a/fees/vesta-finance.ts b/fees/vesta-finance.ts index a7f97cda58..e23349375d 100644 --- a/fees/vesta-finance.ts +++ b/fees/vesta-finance.ts @@ -254,7 +254,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1672272000, + start: 1672272000, }, } } diff --git a/fees/voodoo-trade.ts b/fees/voodoo-trade.ts index a29ee2c035..1f495b4e98 100644 --- a/fees/voodoo-trade.ts +++ b/fees/voodoo-trade.ts @@ -110,7 +110,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BASE]: { fetch: getFetch(), - start: async () => 1693997105, + start: 1693997105, meta: { methodology } diff --git a/fees/wagmi/index.ts b/fees/wagmi/index.ts index fdc5af41e6..3118294b9e 100644 --- a/fees/wagmi/index.ts +++ b/fees/wagmi/index.ts @@ -14,35 +14,35 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ERA]: { fetch: fetchFee(CHAIN.ERA), - start: async () => 1681257600, + start: 1681257600, meta: { methodology, }, }, [CHAIN.FANTOM]: { fetch: fetchFee(CHAIN.FANTOM), - start: async () => 1681257600, + start: 1681257600, meta: { methodology, }, }, [CHAIN.KAVA]: { fetch: fetchFee(CHAIN.KAVA), - start: async () => 1694476800, + start: 1694476800, meta: { methodology, }, }, [CHAIN.ETHEREUM]: { fetch: fetchFee(CHAIN.ETHEREUM), - start: async () => 18240112, + start: 18240112, meta: { methodology, }, }, [CHAIN.METIS]: { fetch: fetchFee(CHAIN.METIS), - start: async () => 1702888970, + start: 1702888970, meta: { methodology, }, diff --git a/fees/waves/index.ts b/fees/waves/index.ts index 263d0a2f1b..f8c8e83d91 100644 --- a/fees/waves/index.ts +++ b/fees/waves/index.ts @@ -46,7 +46,7 @@ const adapter: Adapter = { adapter: { [CHAIN.WAVES]: { fetch, - start: async () => 1623024000 + start: 1623024000 }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/xena-finance.ts b/fees/xena-finance.ts index 13b8401fe4..5edf2eab25 100644 --- a/fees/xena-finance.ts +++ b/fees/xena-finance.ts @@ -54,7 +54,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BASE]: { fetch: graphs(endpoints)(CHAIN.BASE), - start: async () => 1696856400, + start: 1696856400, meta: { methodology: { Fees: 'All mint, burn, margin, liquidation and swap fees are collect', diff --git a/fees/xoxno/index.ts b/fees/xoxno/index.ts index 9dbe1eca1b..0092e286d0 100644 --- a/fees/xoxno/index.ts +++ b/fees/xoxno/index.ts @@ -37,7 +37,7 @@ const adapters: SimpleAdapter = { adapter: { [CHAIN.ELROND]: { fetch: fetchFees, - start: async () => 1683849600, + start: 1683849600, } } } diff --git a/fees/y2k/index.ts b/fees/y2k/index.ts index 09078341bc..29bfc78cf8 100644 --- a/fees/y2k/index.ts +++ b/fees/y2k/index.ts @@ -13,7 +13,7 @@ const adapter: Adapter = { v1: { [CHAIN.ARBITRUM]: { fetch: v1Fetch(CHAIN.ARBITRUM), - start: async () => 1667088000, + start: 1667088000, meta: { methodology, }, @@ -22,7 +22,7 @@ const adapter: Adapter = { v2: { [CHAIN.ARBITRUM]: { fetch: v2Fetch, - start: async () => 1685404800, + start: 1685404800, }, }, }, diff --git a/fees/yfx-v3.ts b/fees/yfx-v3.ts index 028e68149d..6a7ad76e63 100644 --- a/fees/yfx-v3.ts +++ b/fees/yfx-v3.ts @@ -67,7 +67,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graphs(endpoints)(CHAIN.ARBITRUM), - start: async () => 1691128800, + start: 1691128800, meta: { methodology } diff --git a/fees/zkswap-finance.ts b/fees/zkswap-finance.ts index e210dbd946..c0ac4ebbd6 100644 --- a/fees/zkswap-finance.ts +++ b/fees/zkswap-finance.ts @@ -50,7 +50,7 @@ const baseAdapter: BaseAdapter = { ...adapterObj[CHAIN.ERA], fetch: fetch(CHAIN.ERA, 0.0008, 0.0004), customBackfill: fetch(CHAIN.ERA, 0.0008, 0.0004), - start: async () => 1696118400, + start: 1696118400, meta: { methodology } diff --git a/fees/zksync-era/index.ts b/fees/zksync-era/index.ts index 2d714f7d77..48263b52c4 100644 --- a/fees/zksync-era/index.ts +++ b/fees/zksync-era/index.ts @@ -66,7 +66,7 @@ const adapter: Adapter = { } }, - start: async () => 1679616000 // March 24, 2023 + start: 1679616000 // March 24, 2023 }, }, protocolType: ProtocolType.CHAIN diff --git a/fees/zunami/index.ts b/fees/zunami/index.ts index 43efe55c1f..5e94e096c3 100644 --- a/fees/zunami/index.ts +++ b/fees/zunami/index.ts @@ -87,7 +87,7 @@ const adapter: SimpleAdapter = { [DISABLED_ADAPTER_KEY]: disabledAdapter, [CHAIN.ETHEREUM]: { fetch: getData(CHAIN.ETHEREUM), - start: async () => START_TIMESTAMP, + start: START_TIMESTAMP, runAtCurrTime: true, meta: {methodology} }, diff --git a/fees/zyberswap.ts b/fees/zyberswap.ts index a61ebb8826..ef25180e3d 100644 --- a/fees/zyberswap.ts +++ b/fees/zyberswap.ts @@ -111,7 +111,7 @@ const adapter: BreakdownAdapter = { v2: { [CHAIN.ARBITRUM]: { fetch: v2Graph(CHAIN.ARBITRUM), - start: async () => 1674432000, + start: 1674432000, meta: { methodology }, @@ -120,7 +120,7 @@ const adapter: BreakdownAdapter = { v3: Object.keys(v3Endpoints).reduce((acc, chain) => { acc[chain] = { fetch: v3Graphs(chain as Chain), - start: async () => 1676887200, + start: 1676887200, meta: { methodology: methodologyV3 } @@ -130,7 +130,7 @@ const adapter: BreakdownAdapter = { stable: { [CHAIN.ARBITRUM]: { fetch: stableGraph(CHAIN.ARBITRUM), - start: async () => 1676113200, + start: 1676113200, meta: { methodology: methodologyStable }, diff --git a/helpers/aggregators/duneAdapter.ts b/helpers/aggregators/duneAdapter.ts index ccce1193c4..7f78b9682e 100644 --- a/helpers/aggregators/duneAdapter.ts +++ b/helpers/aggregators/duneAdapter.ts @@ -55,7 +55,7 @@ const getAdapter = ( ...acc, [chain]: { fetch: fetch(chain), - start: async () => start, + start: start, }, }; }, {}), diff --git a/helpers/blockscoutFees.ts b/helpers/blockscoutFees.ts index 8fa8d11fa0..22ab0bfa4c 100644 --- a/helpers/blockscoutFees.ts +++ b/helpers/blockscoutFees.ts @@ -19,7 +19,7 @@ export function blockscoutFeeAdapter(chain:string, url:string, coin:string){ dailyFees: usdFees.toString(), }; }, - start: async () => 1575158400 + start: 1575158400 }, }, protocolType: ProtocolType.CHAIN diff --git a/helpers/disabledAdapter.ts b/helpers/disabledAdapter.ts index fd0a107e97..d6a7a53b7e 100644 --- a/helpers/disabledAdapter.ts +++ b/helpers/disabledAdapter.ts @@ -1,4 +1,4 @@ export default { - start: async () => 0, + start: 0, fetch: async () => ({ timestamp: 0 }) } \ No newline at end of file diff --git a/helpers/etherscanFees.ts b/helpers/etherscanFees.ts index 18f689917a..48ecca1832 100644 --- a/helpers/etherscanFees.ts +++ b/helpers/etherscanFees.ts @@ -29,7 +29,7 @@ export function etherscanFeeAdapter(chain:string, url:string, coin:string){ dailyFees: usdFees.toString(), }; }, - start: async () => 1690761600 + start: 1690761600 }, }, protocolType: ProtocolType.CHAIN diff --git a/helpers/getChainFees.ts b/helpers/getChainFees.ts index 2def9f6b9c..0a1c3898e7 100644 --- a/helpers/getChainFees.ts +++ b/helpers/getChainFees.ts @@ -19,7 +19,7 @@ export const chainAdapter = (adapterKey: string, assetID: string, startTime: num return { [adapterKey]: { fetch: fetch, - start: async () => startTime + start: startTime } } }; diff --git a/incentives/bitcoin/index.ts b/incentives/bitcoin/index.ts index 456512b770..e7960e2efa 100644 --- a/incentives/bitcoin/index.ts +++ b/incentives/bitcoin/index.ts @@ -35,7 +35,7 @@ const adapter: Adapter = { adapter: { [CHAIN.BITCOIN]: { fetch: getIncentives, - start: async () => 1438228800, + start: 1438228800, }, }, protocolType: ProtocolType.CHAIN diff --git a/options/aevo/index.ts b/options/aevo/index.ts index 3e6067ab60..7f648ad4b0 100644 --- a/options/aevo/index.ts +++ b/options/aevo/index.ts @@ -18,7 +18,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchAevoVolumeData, - start: async () => 1681430400 + start: 1681430400 }, }, }; diff --git a/options/dopex/index.ts b/options/dopex/index.ts index 7000a8acd1..f669937ce4 100644 --- a/options/dopex/index.ts +++ b/options/dopex/index.ts @@ -19,7 +19,7 @@ const adapter: BreakdownAdapter = { [chain]: { fetch: async (timestamp: string) => await getChainStats({ graphUrl: clammEndpoints[chain], timestamp }), - start: async () => clammStartTimes[chain], + start: clammStartTimes[chain], }, }; }, {}), diff --git a/options/lyra-v2/index.ts b/options/lyra-v2/index.ts index 0587f9c638..2cf4f130c2 100644 --- a/options/lyra-v2/index.ts +++ b/options/lyra-v2/index.ts @@ -18,7 +18,7 @@ export const v2_adapter: SimpleAdapter = { adapter: { [CHAIN.ETHEREUM]: { fetch: fetchLyraVolumeData, - start: async () => 1702630075 + start: 1702630075 }, }, }; diff --git a/options/lyra/index.ts b/options/lyra/index.ts index 15846e1a89..26e5224d05 100644 --- a/options/lyra/index.ts +++ b/options/lyra/index.ts @@ -19,7 +19,7 @@ const adapters: SimpleAdapter = { ...acc, [chain]: { fetch: subgraph(chain as Chain), - start: async () => 1656154800, + start: 1656154800, }, }; }, {}), diff --git a/options/opyn/index.ts b/options/opyn/index.ts index 441c1491f6..eab6ce4954 100644 --- a/options/opyn/index.ts +++ b/options/opyn/index.ts @@ -81,7 +81,7 @@ const adapter: BreakdownAdapter = { "gamma": { [CHAIN.ETHEREUM]: { fetch, - start: async () => 1609200000 + start: 1609200000 } } } diff --git a/options/premia/index.ts b/options/premia/index.ts index d262cfe8f3..965db7ce59 100644 --- a/options/premia/index.ts +++ b/options/premia/index.ts @@ -38,7 +38,7 @@ const adapter: BreakdownAdapter = { ...acc, [chain]: { fetch: async (ts: string) => await getV2Data(v2Endpoints[chain], ts), - start: async () => v2StartTimes[chain], + start: v2StartTimes[chain], meta: { methodology: { UserFees: @@ -59,7 +59,7 @@ const adapter: BreakdownAdapter = { [chain]: { fetch: async (ts: number) => await getV3Data(v3Endpoints[chain], ts, chain), - start: async () => v3StartTimes[chain], + start: v3StartTimes[chain], meta: { methodology: { UserFees: diff --git a/options/rysk-finance/index.ts b/options/rysk-finance/index.ts index b5a9c0a2c6..34e2149225 100644 --- a/options/rysk-finance/index.ts +++ b/options/rysk-finance/index.ts @@ -112,7 +112,7 @@ const adapter: SimpleAdapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch, - start: async () => 1688428800 + start: 1688428800 }, }, }; diff --git a/options/thales/index.ts b/options/thales/index.ts index 1f73cf0918..353385672a 100644 --- a/options/thales/index.ts +++ b/options/thales/index.ts @@ -15,7 +15,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: async (timestamp: number) => await getChainData(endpoints[chain], timestamp, chain), - start: async () => MIN_TIMESTAMP + start: MIN_TIMESTAMP } } }, {}) diff --git a/options/tigris/index.ts b/options/tigris/index.ts index 796b017824..5b5849b649 100644 --- a/options/tigris/index.ts +++ b/options/tigris/index.ts @@ -84,11 +84,11 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: fetch(CHAIN.ARBITRUM), - start: async () => 1663023600, + start: 1663023600, }, [CHAIN.POLYGON]: { fetch: fetch(CHAIN.POLYGON), - start: async () => 1663023600, + start: 1663023600, } } } diff --git a/options/typus/index.ts b/options/typus/index.ts index b0a4582ce0..84820c806b 100644 --- a/options/typus/index.ts +++ b/options/typus/index.ts @@ -13,7 +13,7 @@ const adapter: SimpleAdapter = { ...acc, [chain]: { fetch: async (ts: string) => await getChainData(ts), - start: async () => 1697700660, + start: 1697700660, customBackfill: async (ts: string) => await getChainData(ts, "1697700660"), }, diff --git a/options/valorem/index.ts b/options/valorem/index.ts index a6ebde3215..9a4587dfd5 100644 --- a/options/valorem/index.ts +++ b/options/valorem/index.ts @@ -117,7 +117,7 @@ const adapter: Adapter = { adapter: { [ARBITRUM]: { fetch: graphOptions(endpoints)(ARBITRUM), - start: async () => OSE_DEPLOY_TIMESTAMP_BY_CHAIN[ARBITRUM], + start: OSE_DEPLOY_TIMESTAMP_BY_CHAIN[ARBITRUM], meta: { methodology, }, diff --git a/protocols/pancakeswap/index.ts b/protocols/pancakeswap/index.ts index adb8641b2b..d04ef2145b 100644 --- a/protocols/pancakeswap/index.ts +++ b/protocols/pancakeswap/index.ts @@ -257,13 +257,13 @@ const adapter: BreakdownAdapter = { timestamp: timestamp } }, - start: async () => 1680307200, + start: 1680307200, } }, v2: Object.keys(endpoints).reduce((acc, chain) => { acc[chain] = { fetch: graphs(chain as Chain), - start: async () => startTimes[chain], + start: startTimes[chain], meta: { methodology } @@ -281,14 +281,14 @@ const adapter: BreakdownAdapter = { } }, - start: async () => v3StartTimes[chain], + start: v3StartTimes[chain], } return acc }, {} as BaseAdapter), stableswap: Object.keys(stablesSwapEndpoints).reduce((acc, chain) => { acc[chain] = { fetch: graphsStableSwap(chain as Chain), - start: async () => stableTimes[chain], + start: stableTimes[chain], meta: { methodology: { UserFees: "User pays 0.25% fees on each swap.", @@ -306,7 +306,7 @@ const adapter: BreakdownAdapter = { }; adapter.breakdown.v2[CHAIN.APTOS] = { fetch: fetchVolume, - start: async () => 1699488000, + start: 1699488000, // runAtCurrTime: true, } diff --git a/protocols/smbswap/index.ts b/protocols/smbswap/index.ts index 377d285033..35e9a1701a 100644 --- a/protocols/smbswap/index.ts +++ b/protocols/smbswap/index.ts @@ -111,7 +111,7 @@ const adapter: BreakdownAdapter = { v2: Object.keys(endpoints).reduce((acc, chain) => { acc[chain] = { fetch: graphs(chain as Chain), - start: async () => startTimes[chain], + start: startTimes[chain], meta: { methodology } @@ -121,14 +121,14 @@ const adapter: BreakdownAdapter = { v3: Object.keys(v3Endpoint).reduce((acc, chain) => { acc[chain] = { fetch: v3Graph(chain as Chain), - start: async () => v3StartTimes[chain], + start: v3StartTimes[chain], } return acc }, {} as BaseAdapter), stableswap: Object.keys(stablesSwapEndpoints).reduce((acc, chain) => { acc[chain] = { fetch: graphsStableSwap(chain as Chain), - start: async () => stableTimes[chain], + start: stableTimes[chain], meta: { methodology : { UserFees: "User pays 0.25% fees on each swap.", diff --git a/protocols/uniswap/index.ts b/protocols/uniswap/index.ts index ba6876f2ec..767f5b9d0e 100644 --- a/protocols/uniswap/index.ts +++ b/protocols/uniswap/index.ts @@ -171,7 +171,7 @@ const adapter: BreakdownAdapter = { } return response as FetchResultGeneric }, - start: async () => 1541203200, + start: 1541203200, meta: { methodology }, @@ -201,7 +201,7 @@ const adapter: BreakdownAdapter = { v3: Object.keys(v3Endpoints).reduce((acc, chain) => { acc[chain] = { fetch: v3Graphs(chain as Chain), - start: async () => startTimeV3[chain], + start: startTimeV3[chain], meta: { methodology: { ...methodology,