We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e469e38 commit a322de3Copy full SHA for a322de3
explorer/lib/explorer/models/operators.ex
@@ -70,7 +70,10 @@ defmodule Operators do
70
|> Enum.map(fn operator ->
71
case operator.is_active do
72
false ->
73
- Map.from_struct(operator) |> Map.put(:weight, 0)
+ Map.from_struct(operator)
74
+ |> Map.put(:weight, 0)
75
+ |> Map.put(:total_stake_eth, 0)
76
+ |> Map.put(:total_stake_usd, 0)
77
78
true ->
79
weight = Decimal.div(operator.total_stake, total_stake)
0 commit comments