cake_wallet icon indicating copy to clipboard operation
cake_wallet copied to clipboard

Amount scientific notation instead decimal notation

Open gurkcity opened this issue 7 months ago • 3 comments
trafficstars

Describe the bug Scanning a qrcode containing the amount in the URL puts the BTC value in the correct field but in the wrong format (exponential notation, e.g. 2.218E-5) instead of the decimal notation (e.g. 0.00002218).

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Send'
  2. Click on 'Scan QR-Code Icon'
  3. Scan the QR-Code
  4. See error
  5. Additionally after trying to send it anyway an error sows up: 'Amount can only contain numbers'

Expected behavior Show the value in decimal notation

Screenshots QR-Code to Scan Image

Error message and wrong exponential notation in BTC amount field Image

Platform:

  • OS: Android 13
  • Device: Galaxy S20+
  • Cake Wallet Version: 4.26.0

Additional context It occurs not only on Silent Payment addresses, also normal Bitcoin addresses are affected Image

gurkcity avatar Apr 21 '25 09:04 gurkcity

are you creating those qr codes in cake?

MrCyjaneK avatar Apr 21 '25 10:04 MrCyjaneK

these qrcodes are created in PrestaShop software with a Bitcoin payment module https://www.onlineshop-module.de/zahlungsmodul-bitcoin-prestashop.html implemented the BIP0020 of the amount param, see https://en.bitcoin.it/wiki/BIP_0020#Simpler_syntax The silent payments here are still in a development process. Do you think, is there anything wrong with the QRcode?

gurkcity avatar Apr 23 '25 09:04 gurkcity

I have also observed this issue in the past...

yashrajd avatar May 14 '25 17:05 yashrajd