ivy-wallet icon indicating copy to clipboard operation
ivy-wallet copied to clipboard

[BUG] Issue with digits after the comma when transfer from BYN to USD wallet

Open ArtemKuprin opened this issue 1 year ago • 2 comments

Please confirm the following

Describe the bug

When I want to transfer some sum from one wallet with BYN currency to another wallet with USD, then the issue happens with currency and the final sum doesn't converge.

To Reproduce

  1. Create two wallets with different currencies. In my example one with BYN, another with USD.

  2. Transfer 163.42 BYN to another USD wallet and now try to adjust the sum according to the screenshot below: Screenshot_20240412-145536

  3. It's not possible to receive $50 without pennies, because currency rate doesn't allows you to make it anyway.

Expected behavior

The sum after this transaction should be $50, without any pennies after comma.

Screenshots

No response

App version

Latest from Google Play

Smartphone

Google Pixel 8 Pro

Additional context

Maybe the issue connected with rounding in Java, but not sure.

ArtemKuprin avatar Apr 12 '24 12:04 ArtemKuprin

Thank you @ArtemKuprin for raising Issue #3125! 🚀 What's next? Read our Contribution Guidelines 📚.

Tagging @ILIYANGERMANOV for review & approval 👀

ivywallet avatar Apr 12 '24 12:04 ivywallet

Our UX on this screen is trash. We need to be able to set "from" and "to" amounts properly.

ILIYANGERMANOV avatar Apr 12 '24 12:04 ILIYANGERMANOV