diff --git a/dexs/wombat-exchange/index.ts b/dexs/wombat-exchange/index.ts index 19c772fb80..58bce99796 100644 --- a/dexs/wombat-exchange/index.ts +++ b/dexs/wombat-exchange/index.ts @@ -1,4 +1,4 @@ -import { FetchResultVolume, SimpleAdapter } from "../../adapters/types"; +import {FetchOptions, FetchResultV2, SimpleAdapter} from "../../adapters/types"; import { CHAIN } from "../../helpers/chains"; import { gql, request } from "graphql-request"; import { getUniqStartOfTodayTimestamp } from "../../helpers/getUniSubgraphVolume"; @@ -41,9 +41,10 @@ const endpoints: TEndpoint = { }; const fetchVolume = (chain: Chain) => { - return async (timestamp: number): Promise => { + return async (options: FetchOptions): Promise => { + const { startTimestamp} = options; const dayTimestamp = getUniqStartOfTodayTimestamp( - new Date(timestamp * 1000) + new Date(startTimestamp * 1000) ); const todaysBlock = await getBlock(dayTimestamp, chain, {}); const dayID = dayTimestamp / 86400; @@ -71,6 +72,7 @@ const fetchVolume = (chain: Chain) => { }; const adapter: SimpleAdapter = { + version: 2, adapter: { [CHAIN.BSC]: { fetch: fetchVolume(CHAIN.BSC), diff --git a/fees/wombat-exchange.ts b/fees/wombat-exchange.ts index a2bd7c813e..891558873d 100644 --- a/fees/wombat-exchange.ts +++ b/fees/wombat-exchange.ts @@ -2,7 +2,7 @@ import { Adapter } from "../adapters/types"; import volumeAdapter from "../dexs/wombat-exchange"; import { getDexChainFees } from "../helpers/getUniSubgraphFees"; -const TOTAL_FEES = 0.0001; +const TOTAL_FEES = 0.0004; const feeAdapter = getDexChainFees({ totalFees: TOTAL_FEES,