@ -2965,6 +2965,7 @@ defmodule Explorer.Chain do
|> CoinBalance.fetch_coin_balances(paging_options)
|> page_coin_balances(paging_options)
|> Repo.all()
|> Enum.dedup()
end
def get_coin_balance(address_hash, block_number) do
@ -75,7 +75,6 @@ defmodule Explorer.Chain.Address.CoinBalance do
from(
cb in CoinBalance,
where: cb.address_hash == ^address_hash,
where: cb.value > ^0,
inner_join: b in Block,
on: cb.block_number == b.number,
order_by: [desc: :block_number],