From 4c8953a883576488e3ba0c104ac1c30e23919bb3 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 18 Sep 2019 15:13:36 +0300 Subject: [PATCH 1/2] fix empty total_supply in coin gecko response --- apps/explorer/lib/explorer/exchange_rates/source/coin_gecko.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer/lib/explorer/exchange_rates/source/coin_gecko.ex b/apps/explorer/lib/explorer/exchange_rates/source/coin_gecko.ex index 9d4cfba3f4..b25cc53ff5 100644 --- a/apps/explorer/lib/explorer/exchange_rates/source/coin_gecko.ex +++ b/apps/explorer/lib/explorer/exchange_rates/source/coin_gecko.ex @@ -26,7 +26,7 @@ defmodule Explorer.ExchangeRates.Source.CoinGecko do [ %Token{ available_supply: to_decimal(market_data["circulating_supply"]), - total_supply: to_decimal(market_data["total_supply"]), + total_supply: to_decimal(market_data["total_supply"]) || to_decimal(market_data["circulating_supply"]), btc_value: btc_value, id: json_data["id"], last_updated: last_updated, From 66503e4164b0460b1b731171dd6c040d4b1ddbcd Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 18 Sep 2019 15:15:31 +0300 Subject: [PATCH 2/2] add CHANGELOG entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3a0f91771..c818adeda8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - [#2663](https://github.com/poanetwork/blockscout/pull/2663) - Fetch address counters in parallel ### Fixes +- [#2706](https://github.com/poanetwork/blockscout/pull/2706) - fix empty total_supply in coin gecko response - [#2701](https://github.com/poanetwork/blockscout/pull/2701) - Exclude nonconsensus blocks from avg block time calculation by default - [#2696](https://github.com/poanetwork/blockscout/pull/2696) - do not update fetched_coin_balance with nil - [#2693](https://github.com/poanetwork/blockscout/pull/2693) - remove non consensus internal transactions