Skip to content

Commit

Permalink
fix rev
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Aug 29, 2024
1 parent d163f61 commit 19059c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fees/dydx-v4/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ const fetchFees = async (timestamp: number, _t: ChainBlocks ,options: FetchOpti
delete res['latestTen']
const item: IFees[] = Object.values(res)
const dailyFees = item.find((i) => i.day.split('T')[0] === dateStr)?.sum_tradingfeecollection
const dailyFeesNum = dailyFees ? parseFloat(dailyFees) : undefined
return {
dailyFees: dailyFees ? dailyFees : undefined,
dailyFees: dailyFeesNum,
dailyRevenue: dailyFeesNum,
dailyHoldersRevenue: dailyFeesNum,
timestamp: timestamp,
}
}
Expand Down

0 comments on commit 19059c4

Please sign in to comment.