{"action":"created","issue":{"url":"https://api.github.com/repos/BitShares/qt_wallet/issues/104","labels_url":"https://api.github.com/repos/BitShares/qt_wallet/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/BitShares/qt_wallet/issues/104/comments","events_url":"https://api.github.com/repos/BitShares/qt_wallet/issues/104/events","html_url":"https://github.com/BitShares/qt_wallet/issues/104","id":57215432,"number":104,"title":"Transaction fees computed wrong in GUI for assets, causing inability to send transfer","user":{"login":"dnotestein","id":5102968,"avatar_url":"https://avatars.githubusercontent.com/u/5102968?v=3","gravatar_id":"","url":"https://api.github.com/users/dnotestein","html_url":"https://github.com/dnotestein","followers_url":"https://api.github.com/users/dnotestein/followers","following_url":"https://api.github.com/users/dnotestein/following{/other_user}","gists_url":"https://api.github.com/users/dnotestein/gists{/gist_id}","starred_url":"https://api.github.com/users/dnotestein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnotestein/subscriptions","organizations_url":"https://api.github.com/users/dnotestein/orgs","repos_url":"https://api.github.com/users/dnotestein/repos","events_url":"https://api.github.com/users/dnotestein/events{/privacy}","received_events_url":"https://api.github.com/users/dnotestein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BitShares/qt_wallet/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"valzav","id":28658,"avatar_url":"https://avatars.githubusercontent.com/u/28658?v=3","gravatar_id":"","url":"https://api.github.com/users/valzav","html_url":"https://github.com/valzav","followers_url":"https://api.github.com/users/valzav/followers","following_url":"https://api.github.com/users/valzav/following{/other_user}","gists_url":"https://api.github.com/users/valzav/gists{/gist_id}","starred_url":"https://api.github.com/users/valzav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valzav/subscriptions","organizations_url":"https://api.github.com/users/valzav/orgs","repos_url":"https://api.github.com/users/valzav/repos","events_url":"https://api.github.com/users/valzav/events{/privacy}","received_events_url":"https://api.github.com/users/valzav/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-02-10T18:30:35Z","updated_at":"2015-02-11T16:10:41Z","closed_at":"2015-02-10T19:21:26Z","body":"If I try to transfer an asset such as TRADE.BTC (a user-issued asset), the GUI thinks I need .1 TRADE.BTC to make the transfer. In actuality, I need .1 BTS to send the transfer. Because of this miscalculation, I'm unable to transfer TRADE.BTC, since I don't have enough TRADE.BTC to satisfy GUI. This is a high priority error for gateway testing.\r\nNote that I am able to send the desired amount via the console of the GUI, so this is just a GUI calculation issue."},"comment":{"url":"https://api.github.com/repos/BitShares/qt_wallet/issues/comments/73908210","html_url":"https://github.com/BitShares/qt_wallet/issues/104#issuecomment-73908210","issue_url":"https://api.github.com/repos/BitShares/qt_wallet/issues/104","id":73908210,"user":{"login":"jcalfee","id":204121,"avatar_url":"https://avatars.githubusercontent.com/u/204121?v=3","gravatar_id":"","url":"https://api.github.com/users/jcalfee","html_url":"https://github.com/jcalfee","followers_url":"https://api.github.com/users/jcalfee/followers","following_url":"https://api.github.com/users/jcalfee/following{/other_user}","gists_url":"https://api.github.com/users/jcalfee/gists{/gist_id}","starred_url":"https://api.github.com/users/jcalfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcalfee/subscriptions","organizations_url":"https://api.github.com/users/jcalfee/orgs","repos_url":"https://api.github.com/users/jcalfee/repos","events_url":"https://api.github.com/users/jcalfee/events{/privacy}","received_events_url":"https://api.github.com/users/jcalfee/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T16:10:41Z","updated_at":"2015-02-11T16:10:41Z","body":"Here is a review:  The wallet will query `wallet_get_transaction_fee <desired asset>` where the desired asset is the asset being transferred.  The asset that is returned by the RPC command is the asset that is shown in the GUI as the fee.  \r\n\r\nIf there is not enough to pay in that asset, the bitshares_client will go looking for other assets that can pay the fee.  How will the wallet know what fee to display to the user before they confirm the transfer?\r\n\r\nAlso: If the asset being transferred has a balance in any market pegged asset that has enough active price feeds, that would probably be a good fee to return and to accept.  It may be an option for Dan to get price feeds published for TRADE.BTC to make it easier to transfer."}}