Merge pull request #4430 from blockscout/vb-fix-on-demand-current-token-balance-fetcher

Fix current token balance on-demand fetcher
pull/4437/head
Victor Baranov 3 years ago committed by GitHub
commit 5278cfaadb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 1
      apps/indexer/lib/indexer/fetcher/token_balance_on_demand.ex

@ -7,6 +7,7 @@
- [#4353](https://github.com/blockscout/blockscout/pull/4353) - Added live-reload on the token holders page
### Fixes
- [#4430](https://github.com/blockscout/blockscout/pull/4430) - Fix current token balance on-demand fetcher
- [#4429](https://github.com/blockscout/blockscout/pull/4429) - Fix 500 response on `/tokens/{addressHash}/token-holders?type=JSON` when total supply is zero
- [#4419](https://github.com/blockscout/blockscout/pull/4419) - Order contracts in the search by inserted_at in descending order
- [#4418](https://github.com/blockscout/blockscout/pull/4418) - Fix empty search results for the full-word search criteria

@ -65,6 +65,7 @@ defmodule Indexer.Fetcher.TokenBalanceOnDemand do
%{}
|> Map.put(:address_hash, stale_current_token_balance.address_hash)
|> Map.put(:token_contract_address_hash, stale_current_token_balance.token_contract_address_hash)
|> Map.put(:token_type, stale_current_token_balance.token_type)
|> Map.put(:block_number, block_number)
|> Map.put(:value, Decimal.new(updated_balance))
|> Map.put(:value_fetched_at, DateTime.utc_now())

Loading…
Cancel
Save