Ergo Wallet App should support Babel Fee EIP-31 when sending funds.
This should work as seamless as possible for users not knowing about the internals of Babel Fees.
[x] Babel Fees should automatically kick in when ERG balance is below (Fee+MinChangeBoxAmount*2) and no ERG is sent, but only tokens. No need to change something on the fee settings by users. A hint message on fee dialog should indicate this.
When Babel Fees kick in:
[x] Babel Fee Boxes for the tokens sent in the transaction are searched for that can satisfy (Fee+MinChangeBoxAmount*2 - amount owned) with the token amount not sent. If there are Boxes found, but not suitable to use because user has not enough tokens left after the transaction to make a change, but has enouh tokens before the transaction, the amount of tokens needed to sent less is memorized for a later message.
[x] If no suitable Babel Fee Box is found in first step, Babel fee boxes for other tokens owned are searched for.
[x] Both searches consider mempool.
[x] If a Babel Fee Box was found in first or second step, a hint for this change appears in Send Funds confirmation screen
[x] If no suitable Box was found and we have a message memorized from step 1, throw back an error message describing how many tokens need to be sent less to use this box. Otherwise, try to run the transaction without Babel (resulting in normal error message)
Due to Java 7 incompabilities, Babel fees is disabled on iOS.
[x] Recheck after v5 activation or robovm libcore10 upgrade
Ergo Wallet App should support Babel Fee EIP-31 when sending funds. This should work as seamless as possible for users not knowing about the internals of Babel Fees.
When Babel Fees kick in:
Due to Java 7 incompabilities, Babel fees is disabled on iOS.