Remove query filters for TokenBalanceOnDemand fetcher

token-balance-on-demand-include-unfetched
Qwerty5Uiop 1 year ago
parent 28cb183d3a
commit e4bf56a294
  1. 2
      CHANGELOG.md
  2. 1
      apps/explorer/lib/explorer/chain/address/current_token_balance.ex
  3. 1
      apps/indexer/lib/indexer/fetcher/token_balance_on_demand.ex

@ -7,7 +7,7 @@
- [#7952](https://github.com/blockscout/blockscout/pull/7952) - Add parsing constructor arguments for sourcify contracts
- [#6190](https://github.com/blockscout/blockscout/pull/6190) - Add EIP-1559 support to gas price oracle
- [#7977](https://github.com/blockscout/blockscout/pull/7977) - GraphQL: extend schema with new field for existing objects
- [#8158](https://github.com/blockscout/blockscout/pull/8158) - Include unfetched balances in TokenBalanceOnDemand fetcher
- [#8158](https://github.com/blockscout/blockscout/pull/8158), [#8164](https://github.com/blockscout/blockscout/pull/8164) - Include unfetched balances in TokenBalanceOnDemand fetcher
### Fixes

@ -167,7 +167,6 @@ defmodule Explorer.Chain.Address.CurrentTokenBalance do
from(
ctb in __MODULE__,
where: ctb.address_hash == ^address_hash,
where: ctb.value > 0 or is_nil(ctb.value_fetched_at),
left_join: t in assoc(ctb, :token),
on: ctb.token_contract_address_hash == t.contract_address_hash,
preload: [token: t],

@ -7,7 +7,6 @@ defmodule Indexer.Fetcher.TokenBalanceOnDemand do
use Indexer.Fetcher
alias Explorer.Chain
alias Explorer.Chain.Address.CurrentTokenBalance
alias Explorer.Chain.Cache.BlockNumber
alias Explorer.Chain.Hash
alias Explorer.Counters.AverageBlockTime

Loading…
Cancel
Save