status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
287 stars 78 forks source link

Error displayed when entering a value with sufficient decimals on the Swap Page #16267

Open VolodLytvynenko opened 1 week ago

VolodLytvynenko commented 1 week ago

Steps to Reproduce:

  1. Go to the swap page.
  2. Select any token.
  3. Enter a value with many decimals (e.g., 0.000006 USDC).

Actual Result:

An error is displayed when entering a value with sufficient decimals. image image

Expected Result:

This error should be handled with a dedicated UI, as it appears to be returned by Paraswap.

Logs:

https://www.dropbox.com/scl/fi/gwat5tobeouf6mdwuh0ho/geth.log?rlkey=5d9c1beqzktlml9ixnfzg6y5y&st=l50cqbyq&dl=0

caybro commented 1 week ago

The screenshot shows your decimal separator (the one used by your OS/locale) is a comma ,. If you meant to enter a decimal value, you should use a comma

VolodLytvynenko commented 1 week ago

The screenshot shows your decimal separator (the one used by your OS/locale) is a comma ,. If you meant to enter a decimal value, you should use a comma

hey @caybro I can't enter a comma. Nothing happens when a comma is pressed. I can enter only . in this input page

caybro commented 1 week ago

That's very strange; I only noticed now that first of your screenshots has a , but the second one has a . as a decimal separator. What is your OS and locale settings?

VolodLytvynenko commented 1 week ago

That's very strange; I only noticed now that first of your screenshots has a , but the second one has a . as a decimal separator. What is your OS and locale settings?

@caybro I’m using macOS Monterey , MacBook Air M1. But It seems this issue isn't related to the decimal separator. According to @dlipicar, which is discussed in the swap chat, the problem is with how third parties handle decimal values.