|
|
@ -221,11 +221,12 @@ defmodule BlockScoutWeb.API.V2.CeloView do |
|
|
|
} |
|
|
|
} |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
defp prepare_election_reward(%ElectionReward{token: %Token{}} = reward) do |
|
|
|
defp prepare_election_reward(%ElectionReward{token: %Token{}, block: %Block{}} = reward) do |
|
|
|
%{ |
|
|
|
%{ |
|
|
|
amount: reward.amount, |
|
|
|
amount: reward.amount, |
|
|
|
block_number: reward.block.number, |
|
|
|
block_number: reward.block.number, |
|
|
|
block_hash: reward.block_hash, |
|
|
|
block_hash: reward.block_hash, |
|
|
|
|
|
|
|
block_timestamp: reward.block.timestamp, |
|
|
|
epoch_number: reward.block.number |> CeloHelper.block_number_to_epoch_number(), |
|
|
|
epoch_number: reward.block.number |> CeloHelper.block_number_to_epoch_number(), |
|
|
|
account: |
|
|
|
account: |
|
|
|
Helper.address_with_info( |
|
|
|
Helper.address_with_info( |
|
|
|