Skip to content

Commit

Permalink
fix: use timeframe volume instead of market.volume_24h
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSinclair committed Dec 23, 2024
1 parent 0f4f232 commit ef948c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/trendingTokens/trendingTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function fetchTrendingTokens({
day: trending.pool_data.h24_price_change || 0,
},
marketCap: market.market_cap?.value || 0,
volume: market.volume_24h || 0,
volume: (trending.swap_data?.bought_stats?.total_volume ?? 0) + (trending.swap_data?.sold_stats?.total_volume ?? 0),
highlightedFriends,
icon_url,
colors: {
Expand Down

0 comments on commit ef948c7

Please sign in to comment.