Very unobvious bug
purplebrabus opened this issue · comments
purplebrabus commented
If u try to make an order to sell some bug quantities of token, like hundreds of millions, then function BaseClient._convert_to_currency_quantity() has such bug: in the last line return str(res)
if res is quite big, str() returns such format like 1.1337420e+25
and this causes some errors and exceptions further if u try to place new order. The solution is to replace this line to return '{:d}'.format(int(res))
then it will return ok numbers like 113374200000000000000000
Sam McHardy commented
Thanks, included in v0.3.4