bitpay / wallet

Bitpay Wallet (formerly Copay) is a secure Bitcoin and other crypto currencies wallet platform for both desktop and mobile devices.
http://bitpay.com/wallet
MIT License
3.8k stars 1.74k forks source link

sending an incorrect amount, resulting in underpayment errors. #12056

Open monsterbitar opened 2 years ago

monsterbitar commented 2 years ago

Describe the bug When paying to a payment request like this `bitcoincash:?amount=0.00507331 the last 2 digits are cut off resulting in underpayments. The onchain payment shows a sent value of 0.005073.

To Reproduce Steps to reproduce the behavior:

  1. Make a payment request as per above, I used the bitcoin cash registrer app
  2. scan the payment QR code with a separate app to verify that the numbers are correct
  3. scan the payment QR code with the bitpay wallet and send the payment
  4. verify onchain that the sent transaction has the last two digits cut off / rounded

Expected behavior Bitpay wallet should send the requested number of satoshis.

Screenshots no screenshots available atm. (but can arrange if necessary)

Smartphone (please complete the following information):

Additional context no additional context available. (but if necessary, I can gather transaction hashes and provide later)