From 83156769f6fbc1b109ce6b8aa867607ec7259d0c Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 1 Jun 2020 22:28:18 +0300 Subject: [PATCH] Balances by day processing: orrering by day --- apps/explorer/lib/explorer/chain.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/explorer/lib/explorer/chain.ex b/apps/explorer/lib/explorer/chain.ex index ed300bebc7..ea3ace7278 100644 --- a/apps/explorer/lib/explorer/chain.ex +++ b/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