edit config

pull/1916/head
saneery 6 years ago
parent 5e66eda042
commit 57f924f440
  1. 8
      apps/explorer/config/config.exs

@ -58,9 +58,13 @@ config :explorer, Explorer.Staking.PoolsReader,
validators_contract_address: System.get_env("POS_VALIDATORS_CONTRACT"),
staking_contract_address: System.get_env("POS_STAKING_CONTRACT")
config :explorer, Explorer.Staking.EpochCounter,
enabled: false,
if System.get_env("POS_STAKING_CONTRACT") do
config :explorer, Explorer.Staking.EpochCounter,
enabled: true,
staking_contract_address: System.get_env("POS_STAKING_CONTRACT")
else
config :explorer, Explorer.Staking.EpochCounter, enabled: false
end
if System.get_env("SUPPLY_MODULE") == "TokenBridge" do
config :explorer, supply: Explorer.Chain.Supply.TokenBridge

Loading…
Cancel
Save