airbitz-ios-gui
airbitz-ios-gui copied to clipboard
Max spend fails to calculate fees, or does so at the wrong time?
'Max' button used to work to spend all outputs in a wallet. Since the latest update whenever you select 'Max' you then get red text saying 'Insufficient Funds'. Subtracting .0001 from the amount will usually clear it up and allow you to send, but then you end up with dust in the wallet.
Recently found that sometimes just reducing the amount created by 'max' by 1 satoshi clears out the wallet. Not sure if that was just by chance recently though.
I fixed this a while ago, but I'm not sure if has made its way into the latest release or not. I thought we updated the app with the fix, but maybe that was only on Android.
The gist of the bug was that, although we found outputs correctly, we didn't subtract enough money to cover the mining fee exactly. The fees use a sliding scale based on the value of the transaction, which, in this case, depends on the amount of fees. This created a data-dependency loop which messed things up.