-
Notifications
You must be signed in to change notification settings - Fork 0
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
Multiple issues with clearing more than one order at a time from the order books #84
Comments
When you receive your 3 xmr you get your change in GNTL back too right? |
Nope, as far as I can tell the full 150 is taken and nothing is returned. I'll do another test and see what happens on the seller's end. |
Just tested and the seller does not receive the missing funds, so they're just disappearing. |
i think i have fixed this. ill upload the fix soon and post when done |
@tylerjohneddy this is better, the totals balance out correctly. 1 ARQ selling for 30, 40, 50 GNTL: My Completed trades does not look correct: |
@tylerjohneddy I've Re-tested this. Seller's balances and Completed trades look good, 3 individual trades shown. Buyers balances look good, but Completed trades has 1 entry @ Price 50 GNTL, 3 ARQ, 120 GNTL Total. When clicking the order buy (50, 3rd in the list), it showed spend of 150 GNTL, instead of 120 GNTL. DB shows 1st amount of 150 GNTL and price in firstticker of 50 GNTL. |
As the balances for buyer and seller are correct, this appears to be a display issue. When clicking the order, the total is 150 GNTL, but once trade completes, it shows 120 GNTL. |
so this is a front end issue? and a backend issue stroing the incorrect values in the DB? |
Yes looks that way. |
okay, are you able to look at the front end? and take a image of the issue in the DB and send it over? |
I'll use whole numbers and ignore fees for simplicity.
Example: there are 3 orders in the sell book to sell 1 XMR, one for 30 GNTL, one for 40 GNTL, and one for 50 GNTL.
I place a buy order at a price of 50 GNTL and commit a total of 150 GNTL.
Expected behaviour: I receive 3 XMR for 120 GNTL, and leave a buy order in the book for 0.6 XMR for the remaining 30 GNTL at a price of 50 GNTL.
Actual behaviour: I receive 3 XMR and nothing is left over.
In addition, a trade that clears more than one order from the book leaves a massive discrepancy off by several orders of magnitude in the Cost column in the user's trade history. As an example I did a trade that cleared 3 sell orders from the book for a total of ~45 GNTL and the cost shows as 111881.5949 GNTL.
The text was updated successfully, but these errors were encountered: