diff --git a/dexs/ipor/index.ts b/dexs/ipor/index.ts index 732b719a25..d56b459fd3 100644 --- a/dexs/ipor/index.ts +++ b/dexs/ipor/index.ts @@ -41,11 +41,13 @@ const fetch: any = async (timestamp: number, _: any, { chain, getLogs, createBal const logsStables = await getLogs({ targets: stables, topic: OpenSwapStablesTopic, eventAbi: openSwapStablesEventAbi }); const logsStETHs = await getLogs({ targets: stETHs, topic: OpenSwapStEthTopic, eventAbi: openSwapStETHEventAbi }); const logs = logsStables.concat(logsStETHs) - logs.forEach(log => { let balance = Number(log.money?.notional || log.amounts?.notional) if (log.asset.toLowerCase() === '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'.toLowerCase()) { - balance = balance / 1e18 + balance = balance / 1e12 + } + if (log.asset.toLowerCase() === '0xdAC17F958D2ee523a2206206994597C13D831ec7'.toLowerCase()) { + balance = balance / 1e10 } dailyNotionalVolume.add(log.asset, balance) })