Skip to content

Commit

Permalink
fix: debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-99 committed Dec 21, 2024
1 parent f05cf57 commit 09c280a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions explorer/lib/explorer_web/live/pages/home/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule ExplorerWeb.Home.Index do
# verified_proofs = Batches.get_amount_of_verified_proofs()

# restaked_amount_eth = Restakings.get_restaked_amount_eth()
restaked_amount_usd = Restakings.get_restaked_amount_usd()
# restaked_amount_usd = Restakings.get_restaked_amount_usd()

{:noreply,
assign(
Expand All @@ -55,37 +55,37 @@ defmodule ExplorerWeb.Home.Index do
latest_batches: latest_batches,
verified_proofs: 10,
restaked_amount_eth: 10,
restaked_amount_usd: restaked_amount_usd,
restaked_amount_usd: 10,
# cost_per_proof_chart: get_cost_per_proof_chart_data()
cost_per_proof_chart: nil
)}
end

@impl true
def mount(_, _, socket) do
verified_batches = Batches.get_amount_of_verified_batches()
# verified_batches = Batches.get_amount_of_verified_batches()

operators_registered = Operators.get_amount_of_operators()
# operators_registered = Operators.get_amount_of_operators()

latest_batches = Batches.get_latest_batches(%{amount: 5, order_by: :desc})

verified_proofs = Batches.get_amount_of_verified_proofs()
# verified_proofs = Batches.get_amount_of_verified_proofs()

restaked_amount_eth = Restakings.get_restaked_amount_eth()
restaked_amount_usd = Restakings.get_restaked_amount_usd()
# restaked_amount_eth = Restakings.get_restaked_amount_eth()
# restaked_amount_usd = Restakings.get_restaked_amount_usd()

if connected?(socket), do: Phoenix.PubSub.subscribe(Explorer.PubSub, "update_views")

{:ok,
assign(socket,
verified_batches: verified_batches,
operators_registered: operators_registered,
verified_batches: 10,
operators_registered: 10,
latest_batches: latest_batches,
verified_proofs: verified_proofs,
verified_proofs: 10,
service_manager_address:
AlignedLayerServiceManager.get_aligned_layer_service_manager_address(),
restaked_amount_eth: restaked_amount_eth,
restaked_amount_usd: restaked_amount_usd,
restaked_amount_eth: 10,
restaked_amount_usd: 10,
cost_per_proof_chart: get_cost_per_proof_chart_data(),
page_title: "Welcome"
)}
Expand Down

0 comments on commit 09c280a

Please sign in to comment.