Skip to content

Commit

Permalink
check volume & price
Browse files Browse the repository at this point in the history
  • Loading branch information
jonator committed Sep 18, 2024
1 parent f94aa6d commit 4d18ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/queries/complex/assets/market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function makeMarketActivityFromTokenData(tokenData: TokenData) {
return {
price:
tokenData.price !== null
? new PricePretty(DEFAULT_VS_CURRENCY, tokenData.price)
? new PricePretty(DEFAULT_VS_CURRENCY, tokenData.price ?? 0)
: undefined,
denom: tokenData.denom,
symbol: tokenData.symbol,
Expand All @@ -238,7 +238,7 @@ function makeMarketActivityFromTokenData(tokenData: TokenData) {
new Dec(tokenData.liquidity_24h_change).quo(new Dec(100))
)
: undefined,
volume24h: new PricePretty(DEFAULT_VS_CURRENCY, tokenData.volume_24h),
volume24h: new PricePretty(DEFAULT_VS_CURRENCY, tokenData.volume_24h ?? 0),
volume24hChange:
tokenData.volume_24h_change !== null
? new RatePretty(new Dec(tokenData.volume_24h_change).quo(new Dec(100)))
Expand Down

0 comments on commit 4d18ec2

Please sign in to comment.