exchange_rates_source function fix in case of token_bridge source: it should use coinGecko source

pull/5635/head
Viktor Baranov 2 years ago
parent a02bf16bce
commit de0dcb80d9
  1. 1
      CHANGELOG.md
  2. 6
      apps/explorer/lib/explorer/exchange_rates/source.ex

@ -7,6 +7,7 @@
- [#5540](https://github.com/blockscout/blockscout/pull/5540) - Tx page: scroll to selected tab's data
### Fixes
- [#5635](https://github.com/blockscout/blockscout/pull/5635) - Set CoinGecko source in exchange_rates_source function fix in case of token_bridge
- [#5629](https://github.com/blockscout/blockscout/pull/5629) - Fix empty coin balance for empty address
- [#5612](https://github.com/blockscout/blockscout/pull/5612) - Fix token transfers order
- [#5626](https://github.com/blockscout/blockscout/pull/5626) - Fix vyper compiler versions order

@ -88,7 +88,11 @@ defmodule Explorer.ExchangeRates.Source do
@spec exchange_rates_source() :: module()
defp exchange_rates_source do
config(:source) || Explorer.ExchangeRates.Source.CoinGecko
if config(:source) == Explorer.ExchangeRates.Source.TokenBridge do
Explorer.ExchangeRates.Source.CoinGecko
else
config(:source) || Explorer.ExchangeRates.Source.CoinGecko
end
end
@spec config(atom()) :: term

Loading…
Cancel
Save