diff --git a/config/config.exs b/config/config.exs index 4ae689bdf..30fcc1593 100644 --- a/config/config.exs +++ b/config/config.exs @@ -64,10 +64,6 @@ config :sanbase, SanbaseWeb.Plug.BasicAuth, config :sanbase, Sanbase.RepoReader, projects_data_endpoint_secret: {:system, "PROJECTS_DATA_ENDPOINT_SECRET"} -config :sanbase, Sanbase.Transfers.Erc20Transfers, - dt_ordered_table: {:system, "DT_ORDERED_ERC20_TRANFERS_TABLE", "erc20_transfers_dt_order"}, - address_ordered_table: {:system, "ADDRESS_ORDERED_ERC20_TRANSFERS_TABLE", "erc20_transfers"} - config :sanbase, Sanbase.Price.Validator, enabled: {:system, "PRICE_VALIDATOR_ENABLED", true} config :sanbase, Sanbase.Cryptocompare, api_key: {:system, "CRYPTOCOMPARE_API_KEY"} diff --git a/lib/sanbase/transfers/erc20_transfers.ex b/lib/sanbase/transfers/erc20_transfers.ex index 2b4bf2b64..f10d4ec75 100644 --- a/lib/sanbase/transfers/erc20_transfers.ex +++ b/lib/sanbase/transfers/erc20_transfers.ex @@ -10,7 +10,6 @@ defmodule Sanbase.Transfers.Erc20Transfers do alias Sanbase.Project alias Sanbase.Utils.Config - defp dt_ordered_table(), do: Config.module_get(__MODULE__, :dt_ordered_table) defguard is_non_neg_integer(int) when is_integer(int) and int > 0 @@ -220,7 +219,7 @@ defmodule Sanbase.Transfers.Erc20Transfers do to, transactionHash, (any(value) / {{decimals}}) AS value - FROM #{dt_ordered_table()} + FROM erc20_transfers WHERE assetRefId = cityHash64('ETH_' || {{contract}}) AND dt >= toDateTime({{from}}) AND