|
|
@ -13,6 +13,7 @@ defmodule BlockScoutWeb.ChainController do |
|
|
|
def show(conn, _params) do |
|
|
|
def show(conn, _params) do |
|
|
|
transaction_estimated_count = Chain.transaction_estimated_count() |
|
|
|
transaction_estimated_count = Chain.transaction_estimated_count() |
|
|
|
block_count = Chain.block_estimated_count() |
|
|
|
block_count = Chain.block_estimated_count() |
|
|
|
|
|
|
|
address_count = Chain.address_estimated_count() |
|
|
|
|
|
|
|
|
|
|
|
market_cap_calculation = |
|
|
|
market_cap_calculation = |
|
|
|
case Application.get_env(:explorer, :supply) do |
|
|
|
case Application.get_env(:explorer, :supply) do |
|
|
@ -28,7 +29,7 @@ defmodule BlockScoutWeb.ChainController do |
|
|
|
render( |
|
|
|
render( |
|
|
|
conn, |
|
|
|
conn, |
|
|
|
"show.html", |
|
|
|
"show.html", |
|
|
|
address_count: Chain.count_addresses_from_cache(), |
|
|
|
address_count: address_count, |
|
|
|
average_block_time: AverageBlockTime.average_block_time(), |
|
|
|
average_block_time: AverageBlockTime.average_block_time(), |
|
|
|
exchange_rate: exchange_rate, |
|
|
|
exchange_rate: exchange_rate, |
|
|
|
chart_data_path: market_history_chart_path(conn, :show), |
|
|
|
chart_data_path: market_history_chart_path(conn, :show), |
|
|
|