Closed brijeshagal closed 4 months ago
^2.0.0
^2.5.7
When the balance is quite small, the wallet shows balance in exponential format as seen in screenshot below:
Balance should be shown in numeric form and not in scientific notation.
Very low balance on Base chain caused this. If balance is around 0.0000009 (simply 7 decimals), scientific notation is seen.
User Address: 0x1c512FaA65B2C9660bBe7c01f83Bc7bF175B700B
0x1c512FaA65B2C9660bBe7c01f83Bc7bF175B700B
No response
@brijeshagal The formatted balance comes from useBalance hook from wagmi. You can raise a PR to their repo if you consider this an issue.
useBalance
Wagmi github repo link: https://github.com/wevm/wagmi
Is there an existing issue for this?
RainbowKit Version
^2.0.0
wagmi Version
^2.5.7
Current Behavior
When the balance is quite small, the wallet shows balance in exponential format as seen in screenshot below:
Expected Behavior
Balance should be shown in numeric form and not in scientific notation.
Steps To Reproduce
Very low balance on Base chain caused this. If balance is around 0.0000009 (simply 7 decimals), scientific notation is seen.
User Address:
0x1c512FaA65B2C9660bBe7c01f83Bc7bF175B700B
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response