http://blockscan.com/orderInfo/12171354
I placed an order to sell 511 KARMATOKEN at price 0.00139 XCP per KARMATOKEN.
The highest bid was at 0.00140 XCP per KARMATOKEN and the amount was higher than the 511 I wanted to sell.
The order matched but only for 510.99999286 KARMATOKEN. I am left with 0.00000714 KARMATOKEN unsold.
Is there a bug in Counterwallet ???.
In the GUI I specified numbers of tokens to sell and the price, but CW needs to convert these to implied numbers of tokens to give and take.
I guess the CW makes some simple divisions etc, and somewhere inverts these, and then a rounding error may apply.
If I do the simple math, I should want exactly 0.71029 XCP. See there’s less than eight digits, so no rounding would be needed here.
Since the match is at a higher price, I did receive more XCP, as expected, 0.7154051 XCP.
Possibly the bug is with the Counteparty core code ???
Blockscan claims I am selling 511 KARMATOKEN (0.00000714 KARMATOKEN remaining). Hopefully this is a rounding error on Blockscan’s part. These remaining tokens are not left in the order book. Either the core code fails to match the remaining 0.00000714 tokens (it’s a bug, both the buyer and the seller would want this to match) and it cancels the order for the leftover OR as speculated above, the bug lies within Counterwallet.