stack_wallet icon indicating copy to clipboard operation
stack_wallet copied to clipboard

[REQUEST] Bitcoin Cash Wallet : When using Coin Control, SENDMAX feature should only count selected coins, not total available UTXOs

Open Inferknite opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

When using Coin Control, the SENDMAX feature calculates the maximum available from all unfrozen UTXOs. This is despite the fact that you cannot even send the MAX if you've selected less than 100% of available UTXOs. This also means the user has to remember the total amount from the selected UTXOs, subtract the fee manually, then input the number on the send screen.

The only workaround currently is to freeze all UTXOs that are not going to be used in a TX, then use the coin control feature to select ALL other coins, at which point the SENDMAX feature works as I would expect such a feature to work.

Expected Behavior

When selecting UTXOs, the SENDMAX feature should only calculate the MAX based on the selected UTXOs. The fee should be deducted automatically as it typically would. UTXO's should not need to be frozen in order to not be included in the MAX. Simply selecting coins in the coin control screen should be sufficient to calculate the MAX amount.

Reproduce Steps

  1. Open Stack wallet
  2. Click on Bitcoin Cash wallet
  3. Click on "send"
  4. Click on "Select Coins"
  5. Select one or more UTXOs in available outputs (not all available).
  6. Click on "use coins".
  7. Click "send all BCH".
  8. Click "preview"
  9. Receive "Insufficient balance" error (since you selected some UTXOs but tried to send all).

Environment

  • Operating system and version: Android version 14, One UI version 6.1
  • Device platform and version: Samsung S23 128GB
  • Real device or emulator/simulator: Real

Logs

No response

Further Information

No response

Inferknite avatar Jun 29 '24 18:06 Inferknite