Balances by day processing: orrering by day

pull/3125/head
Victor Baranov 5 years ago
parent 536f78cacc
commit 83156769f6
  1. 1
      apps/explorer/lib/explorer/chain.ex

@ -3522,6 +3522,7 @@ defmodule Explorer.Chain do
address_hash
|> CoinBalanceDaily.balances_by_day()
|> Repo.all()
|> Enum.sort(&(&1.date <= &2.date))
|> replace_last_value(latest_block_timestamp)
|> normalize_balances_by_day()
end

Loading…
Cancel
Save