bitshares-ui
bitshares-ui copied to clipboard
[0.5] Issue with determinate count of symbols after comma (precision)
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:
- Please create asset TEST with precision=8
- Please create asses GATEWAY.TEST with precision=7
- Please create a gateway -
GATEWAY - please process some amount of GATEWAY.TEST to your account
- Goto to NewWithdrawal for the amount
GATEWAY.TEST - 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
Good catch. I will take care of this when I bundle some Gateway issues together soon.