Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
Inferknite opened this issue Jun 29, 2024 · 0 comments

Comments

@Inferknite
Copy link

Is there an existing issue for this?

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant