diff --git a/libraries/wallet/include/graphene/wallet/wallet.hpp b/libraries/wallet/include/graphene/wallet/wallet.hpp index befad0100a..4290d2b172 100644 --- a/libraries/wallet/include/graphene/wallet/wallet.hpp +++ b/libraries/wallet/include/graphene/wallet/wallet.hpp @@ -948,51 +948,6 @@ class wallet_api uint32_t timeout_sec = 0, bool fill_or_kill = false, bool broadcast = false); - - /** Place a limit order attempting to sell one asset for another. - * - * This API call abstracts away some of the details of the sell_asset call to be more - * user friendly. All orders placed with sell never timeout and will not be killed if they - * cannot be filled immediately. If you wish for one of these parameters to be different, - * then sell_asset should be used instead. - * - * @param seller_account the account providing the asset being sold, and which will - * receive the processed of the sale. - * @param base The name or id of the asset to sell. - * @param quote The name or id of the asset to recieve. - * @param rate The rate in base:quote at which you want to sell. - * @param amount The amount of base you want to sell. - * @param broadcast true to broadcast the transaction on the network. - * @returns The signed transaction selling the funds. - */ - signed_transaction sell( string seller_account, - string base, - string quote, - double rate, - double amount, - bool broadcast ); - - /** Place a limit order attempting to buy one asset with another. - * - * This API call abstracts away some of the details of the sell_asset call to be more - * user friendly. All orders placed with buy never timeout and will not be killed if they - * cannot be filled immediately. If you wish for one of these parameters to be different, - * then sell_asset should be used instead. - * - * @param buyer_account The account buying the asset for another asset. - * @param base The name or id of the asset to buy. - * @param quote The name or id of the assest being offered as payment. - * @param rate The rate in base:quote at which you want to buy. - * @param amount the amount of base you want to buy. - * @param broadcast true to broadcast the transaction on the network. - * @param The signed transaction selling the funds. - */ - signed_transaction buy( string buyer_account, - string base, - string quote, - double rate, - double amount, - bool broadcast ); /** Borrow an asset or update the debt/collateral ratio for the loan. * @@ -1694,8 +1649,6 @@ FC_API( graphene::wallet::wallet_api, (upgrade_account) (create_account_with_brain_key) (sell_asset) - (sell) - (buy) (borrow_asset) (cancel_order) (transfer) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index dd531c7856..65cf3f044b 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -3861,28 +3861,6 @@ signed_transaction wallet_api::sell_asset(string seller_account, symbol_to_receive, expiration, fill_or_kill, broadcast); } -signed_transaction wallet_api::sell( string seller_account, - string base, - string quote, - double rate, - double amount, - bool broadcast ) -{ - return my->sell_asset( seller_account, std::to_string( amount ), base, - std::to_string( rate * amount ), quote, 0, false, broadcast ); -} - -signed_transaction wallet_api::buy( string buyer_account, - string base, - string quote, - double rate, - double amount, - bool broadcast ) -{ - return my->sell_asset( buyer_account, std::to_string( rate * amount ), quote, - std::to_string( amount ), base, 0, false, broadcast ); -} - signed_transaction wallet_api::borrow_asset(string seller_name, string amount_to_sell, string asset_symbol, string amount_of_collateral, bool broadcast) {