|
|
|
@ -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 |
|
|
|
|