From f08b3ebff7c87a30ae7534bdbb39929fe1d20eee Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Fri, 24 Feb 2023 16:26:21 +0300 Subject: [PATCH] Fix indexed_ratio_blocks --- CHANGELOG.md | 2 +- apps/explorer/lib/explorer/chain.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78da5ea5b1..bc4c48dc1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ - [#6912](https://github.com/blockscout/blockscout/pull/6912) - Docker compose fix exposed ports - [#6913](https://github.com/blockscout/blockscout/pull/6913) - Fix an error occurred when decoding base64 encoded json - [#6911](https://github.com/blockscout/blockscout/pull/6911) - Fix bugs in verification API v2 -- [#6903](https://github.com/blockscout/blockscout/pull/6903), [#6937](https://github.com/blockscout/blockscout/pull/6937) - Fix indexed blocks value in "Indexing tokens" banner +- [#6903](https://github.com/blockscout/blockscout/pull/6903), [#6937](https://github.com/blockscout/blockscout/pull/6937), [#6961](https://github.com/blockscout/blockscout/pull/6961) - Fix indexed blocks value in "Indexing tokens" banner - [#6891](https://github.com/blockscout/blockscout/pull/6891) - Fix read contract for geth - [#6889](https://github.com/blockscout/blockscout/pull/6889) - Fix Internal Server Error on tx input decoding - [#6893](https://github.com/blockscout/blockscout/pull/6893) - Fix token type definition for multiple interface tokens diff --git a/apps/explorer/lib/explorer/chain.ex b/apps/explorer/lib/explorer/chain.ex index 197f95afc8..4cdc174cf3 100644 --- a/apps/explorer/lib/explorer/chain.ex +++ b/apps/explorer/lib/explorer/chain.ex @@ -2238,7 +2238,7 @@ defmodule Explorer.Chain do |> (&if( (Decimal.compare(&1, Decimal.from_float(0.99)) == :gt || Decimal.compare(&1, Decimal.from_float(0.99)) == :eq) && - min == min_blockchain_block_number, + min <= min_blockchain_block_number, do: Decimal.new(1), else: &1 )).()