diff --git a/apps/explorer/lib/explorer/chain/supply/rsk.ex b/apps/explorer/lib/explorer/chain/supply/rsk.ex index 27a13bfdd2..eb7c4571cd 100644 --- a/apps/explorer/lib/explorer/chain/supply/rsk.ex +++ b/apps/explorer/lib/explorer/chain/supply/rsk.ex @@ -17,9 +17,7 @@ defmodule Explorer.Chain.Supply.RSK do @cache_name :rsk_balance @balance_key :balance - def market_cap(%{usd_value: nil}), do: Decimal.new(0) - - def market_cap(%{usd_value: usd_value}) do + def market_cap(%{usd_value: usd_value}) when not is_nil(usd_value) do btc = circulating() Decimal.mult(btc, usd_value)