fix CR issues

pull/2559/head
Ayrat Badykov 5 years ago
parent 45a8a48495
commit 95da8e1a0c
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 4
      apps/explorer/lib/explorer/chain/supply/rsk.ex

@ -17,9 +17,7 @@ defmodule Explorer.Chain.Supply.RSK do
@cache_name :rsk_balance @cache_name :rsk_balance
@balance_key :balance @balance_key :balance
def market_cap(%{usd_value: nil}), do: Decimal.new(0) def market_cap(%{usd_value: usd_value}) when not is_nil(usd_value) do
def market_cap(%{usd_value: usd_value}) do
btc = circulating() btc = circulating()
Decimal.mult(btc, usd_value) Decimal.mult(btc, usd_value)

Loading…
Cancel
Save