Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to purchase outcome with 0.001 Collatearal #2189

Open
pimato opened this issue Aug 12, 2021 · 1 comment · May be fixed by #2219
Open

Not able to purchase outcome with 0.001 Collatearal #2189

pimato opened this issue Aug 12, 2021 · 1 comment · May be fixed by #2219
Assignees
Labels
bug Something isn't working

Comments

@pimato
Copy link
Contributor

pimato commented Aug 12, 2021

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:

  1. Connect to xDai tight integration
  2. Go to http://localhost:3000/#/0x617df4629b2b11ab775562b69ff20e148fe77fb8
  3. Click on 'Buy - Button'
  4. Set 0.001 as purchase amount
  5. Click on Buy - Button
  6. See error: 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

Bildschirmaufnahme.2021-08-12.um.11.18.41.mov

Bildschirmfoto 2021-08-12 um 11 21 37

Bildschirmfoto 2021-08-12 um 11 21 33

@pimato pimato added the bug Something isn't working label Aug 12, 2021
@pimato pimato added this to the Version 1.4 - Guild V1 milestone Aug 12, 2021
@Mi-Lan
Copy link
Contributor

Mi-Lan commented Aug 12, 2021

@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...

@hexyls hexyls linked a pull request Aug 23, 2021 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants