Open pimato opened 3 years ago
Describe the bug It seems like the UI is throwing an error when I am trying to buy an outcome with 0.001 DAI
0.001 DAI
To Reproduce Steps to reproduce the behavior:
0.001
Buy - Button
gnosis-conditional-exchange::Market::Buy - invalid input argument (arg="investmentAmount", reason="invalid number value", value={"_hex":"-0x093cafac6a8000"}, version=4.0.46)
Expected behavior User should be able to purchase 0.001 value worth of outcome tokens.
Screenshots
https://user-images.githubusercontent.com/5337809/129172754-8f3e2161-770f-470f-a47f-94f2cc4b6ec0.mov
@pimato Hey men I looked at it seems that the issue is that when we subtract the relay fee from that amount it ends up being negative value...
Describe the bug It seems like the UI is throwing an error when I am trying to buy an outcome with
0.001 DAI
To Reproduce Steps to reproduce the behavior:
0.001
as purchase amountBuy - Button
gnosis-conditional-exchange::Market::Buy - invalid input argument (arg="investmentAmount", reason="invalid number value", value={"_hex":"-0x093cafac6a8000"}, version=4.0.46)
Expected behavior User should be able to purchase 0.001 value worth of outcome tokens.
Screenshots
https://user-images.githubusercontent.com/5337809/129172754-8f3e2161-770f-470f-a47f-94f2cc4b6ec0.mov