Update coin_market_cap.ex

pull/1802/head
Ayrat Badykov 6 years ago committed by GitHub
parent 950877166e
commit 480f1b6e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/explorer/lib/explorer/exchange_rates/source/coin_market_cap.ex

@ -38,7 +38,7 @@ defmodule Explorer.ExchangeRates.Source.CoinMarketCap do
"#{base_url()}/v1/ticker/?start=#{page - 1}00" "#{base_url()}/v1/ticker/?start=#{page - 1}00"
end end
def max_page_number, do: config(:pages) || 10 def max_page_number, do: config(:pages)
defp base_url do defp base_url do
config(:base_url) || "https://api.coinmarketcap.com" config(:base_url) || "https://api.coinmarketcap.com"

Loading…
Cancel
Save