BitShares Forum
Main => Technical Support => Topic started by: jackingyang on January 29, 2019, 09:30:16 am
-
There is an exception When call Market.sell()
Assert Exception: min_to_receive.amount > 0:
I will sell 0.0002 usd
-
It means your order gets rounded down to zero. What are you trying to sell this for?
-
There is an exception When call Market.sell()
Assert Exception: min_to_receive.amount > 0:
I will sell 0.0002 usd
【买入的】资产数量不能为0,卖出的usd价格太低,可以得到的BTSor其他?资产数量为0了,故报错。
-
on the backend there are no decimals in prices OR amounts
everything is integers in this format:
(amount_to_sell / 10^precision_of_asset1)
(min_to_receive / 10^precision_of_asset2)
each asset has a precision... if you get too close to its precision... ie trying to sell dust then this will get rounded to zero and rejected.
-
Fix it