|
|
@ -58,9 +58,13 @@ config :explorer, Explorer.Staking.PoolsReader, |
|
|
|
validators_contract_address: System.get_env("POS_VALIDATORS_CONTRACT"), |
|
|
|
validators_contract_address: System.get_env("POS_VALIDATORS_CONTRACT"), |
|
|
|
staking_contract_address: System.get_env("POS_STAKING_CONTRACT") |
|
|
|
staking_contract_address: System.get_env("POS_STAKING_CONTRACT") |
|
|
|
|
|
|
|
|
|
|
|
config :explorer, Explorer.Staking.EpochCounter, |
|
|
|
if System.get_env("POS_STAKING_CONTRACT") do |
|
|
|
enabled: false, |
|
|
|
config :explorer, Explorer.Staking.EpochCounter, |
|
|
|
staking_contract_address: System.get_env("POS_STAKING_CONTRACT") |
|
|
|
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 |
|
|
|
if System.get_env("SUPPLY_MODULE") == "TokenBridge" do |
|
|
|
config :explorer, supply: Explorer.Chain.Supply.TokenBridge |
|
|
|
config :explorer, supply: Explorer.Chain.Supply.TokenBridge |
|
|
|