|
|
|
@ -41,17 +41,17 @@ defmodule Indexer.Transform.TokenTransfers do |
|
|
|
|
|> Enum.map(fn token_transfer -> |
|
|
|
|
token_transfer.token_contract_address_hash |
|
|
|
|
end) |
|
|
|
|
|> Enum.dedup() |
|
|
|
|
|> Enum.uniq() |
|
|
|
|
|> Enum.each(&update_token/1) |
|
|
|
|
|
|
|
|
|
tokens_dedup = tokens |> Enum.dedup() |
|
|
|
|
tokens_uniq = tokens |> Enum.uniq() |
|
|
|
|
|
|
|
|
|
token_transfers_from_logs_dedup = %{ |
|
|
|
|
tokens: tokens_dedup, |
|
|
|
|
token_transfers_from_logs_uniq = %{ |
|
|
|
|
tokens: tokens_uniq, |
|
|
|
|
token_transfers: token_transfers |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
token_transfers_from_logs_dedup |
|
|
|
|
token_transfers_from_logs_uniq |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
defp do_parse(log, %{tokens: tokens, token_transfers: token_transfers} = acc, type \\ :erc20_erc721) do |
|
|
|
|