diff --git a/dexs/kokonut-swap/index.ts b/dexs/kokonut-swap/index.ts index ac5db60cb7..0fe75a39e3 100644 --- a/dexs/kokonut-swap/index.ts +++ b/dexs/kokonut-swap/index.ts @@ -18,6 +18,15 @@ const fetch = async (timestamp: number) => { }; }; +const fetchZKEVM = async (timestamp: number) => { + const dayTimestamp = getUniqStartOfTodayTimestamp(new Date(timestamp * 1000)) + const volume24hrOnlySwap = (await fetchURL('https://prod.kokonut-api.com/zkevm-24hr-volume'))?.data; + return { + dailyVolume: volume24hrOnlySwap, + timestamp: dayTimestamp, + }; +}; + const adapter: SimpleAdapter = { adapter: { @@ -26,6 +35,11 @@ const adapter: SimpleAdapter = { start: async () => 1672358400, runAtCurrTime: true }, + [CHAIN.POLYGON_ZKEVM]: { + fetch: fetchZKEVM, + start: async () => 1687335466, + runAtCurrTime: true + }, }, };