bitshares-ui icon indicating copy to clipboard operation
bitshares-ui copied to clipboard

[0.5] Issue with determinate count of symbols after comma (precision)

Open gades opened this issue 6 years ago • 1 comments
trafficstars

Describe the bug if you have two assets with different precision PIRATE precision = 8 and PIRATE.PIRATE precision = 7

To Reproduce Steps to reproduce the behavior:

  1. Please create asset TEST with precision=8
  2. Please create asses GATEWAY.TEST with precision=7
  3. Please create a gateway - GATEWAY
  4. please process some amount of GATEWAY.TEST to your account
  5. Goto to NewWithdrawal for the amount GATEWAY.TEST
  6. Here doesn't work click to your balance and after specified amount then on next step your amount will be multiplied to 10

Expected behavior The application doesn't pay attention to precision from API settings and after the fount first asset PIRATE.PIRATE but after the loop, it found another asset PIRATE and will use precision 8 instead of 7

Desktop (please complete the following information):

  • OS: Mac OS
  • Browser Crome
  • Version latest commit from dev branch

Additional context i found workaround

            if (item.get("symbol") == selectedAsset) {

                //fromAsset = item;

                //withdrawalCurrencyPrecision = item.get("precision");

            }

it will fix override precision after found PIRATE.PIRATE but i'm still expection issue by clicking to available ballance

p.s./ Legacy withdrawal is working fine

gades avatar Jun 20 '19 08:06 gades

Good catch. I will take care of this when I bundle some Gateway issues together soon.

startailcoon avatar Jun 22 '19 20:06 startailcoon