blockscout / frontend

Front-end application for Blockscout
https://blockscout.com
GNU General Public License v3.0
146 stars 383 forks source link

Show small ERC-20 token balance instead of zero #1942

Open air3ijai opened 2 months ago

air3ijai commented 2 months ago

Description

When address has a small amount of ERC-20 token (5555), block explorer show zero balance instead of the current amount. Probably it round it at some value?

We should be able to see current amount, even if it is small

Screenshot 2024-05-21 at 14 44 54

Link to the page

http://localhost

Steps to reproduce

  1. Send a small amount of tokens - 5555
    web3 contract call \
     --wait \
     --abi TEST.abi \
     --gas-limit 800000 \
     --address $TOKEN_ADDRESS \
     --function mint $ADDRESS 5555
  2. See 0 tokens in explorer, even if account has 0.000000000000005555 tokens

App version

v1.30.1

Browser

Google Chrome 124

Operating system

None

Additional information

Screenshots Screenshot 2024-05-21 at 14 39 12 Screenshot 2024-05-21 at 14 42 28 Screenshot 2024-05-21 at 14 43 40