From 95da8e1a0cb1168de6819be905a74a4f85551e9f Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Tue, 13 Aug 2019 15:04:41 +0300 Subject: [PATCH] fix CR issues --- apps/explorer/lib/explorer/chain/supply/rsk.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)