-
Notifications
You must be signed in to change notification settings - Fork 648
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
cli_wallet: buy/sell command has incorrect number formatting #544
Comments
Thanks for the report. wallet_api::sell( string seller_account, string base, string quote, double rate, double amount, bool broadcast ) calls sell_asset( seller_account, std::to_string( amount ), base, std::to_string( rate * amount ), quote, 0, false, broadcast ) There are actually two problems here:
|
As discussed in #558, let's remove the two commands. Since they're broken, I guess it's safe to do so. Thoughts? |
Remove buy and sell (with doubles) from CLI. #544
closing as commands were removed from the cli. |
Example:
10000
get converted to10000.000000
, but BTS only has 5 digit precision, thus failing the assert.The text was updated successfully, but these errors were encountered: