|
|
@ -177,16 +177,13 @@ defmodule BlockScoutWeb.Notifier do |
|
|
|
def handle_event({:chain_event, :token_transfers, :realtime, all_token_transfers}) do |
|
|
|
def handle_event({:chain_event, :token_transfers, :realtime, all_token_transfers}) do |
|
|
|
all_token_transfers_full = |
|
|
|
all_token_transfers_full = |
|
|
|
all_token_transfers |
|
|
|
all_token_transfers |
|
|
|
|> Enum.map( |
|
|
|
|> Repo.preload( |
|
|
|
&(&1 |
|
|
|
DenormalizationHelper.extend_transaction_preload([ |
|
|
|
|> Repo.preload( |
|
|
|
:token, |
|
|
|
DenormalizationHelper.extend_transaction_preload([ |
|
|
|
:transaction, |
|
|
|
:token, |
|
|
|
from_address: [:names, :smart_contract, :proxy_implementations], |
|
|
|
:transaction, |
|
|
|
to_address: [:names, :smart_contract, :proxy_implementations] |
|
|
|
from_address: [:names, :smart_contract, :proxy_implementations], |
|
|
|
]) |
|
|
|
to_address: [:names, :smart_contract, :proxy_implementations] |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
)) |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
transfers_by_token = Enum.group_by(all_token_transfers_full, fn tt -> to_string(tt.token_contract_address_hash) end) |
|
|
|
transfers_by_token = Enum.group_by(all_token_transfers_full, fn tt -> to_string(tt.token_contract_address_hash) end) |
|
|
|