jam icon indicating copy to clipboard operation
jam copied to clipboard

Forbid a "direct send" when a jar is "swept" or vice versa

Open editwentyone opened this issue 1 year ago • 3 comments

to not hurt themselves, the user shouldn't be able to sweep a jar AND combine it with a "direct send" aka deactivated coinjoin send.

  • so either its "I want to sweep", the user clicks on sweep, then the toggle under options stays ON but gets "deactivated" to toggle off
  • or its "I want to send a direct send", so the user turns off the toggle under options but then the "sweep" button gets also deactivated on the amount input

it would be also good to have a mouse overlay that's hints why the toggle or sweep button got deactivated:

  • "This function is deactivated because direct send was activated."
  • "This function is deactivated because sweep wallet was activated."

(this routine has nothing todo with the overall wallet "sweep" function from the header menu)

editwentyone avatar Aug 13 '24 09:08 editwentyone

This approach makes sense, but what if the user bypasses the sweep option by manually inputting the full amount in the input field? How should we handle that?

amitx13 avatar Aug 20 '24 16:08 amitx13

I am unsure whether this is a good approach. Of course privacy degrading functions should be discouraged, but outright disabled? It should still be decided by the user what should be done. Jam should make sure the user is aware of what is being done and what the consequences are. Should it?

theborakompanioni avatar Aug 20 '24 17:08 theborakompanioni

This approach makes sense, but what if the user bypasses the sweep option by manually inputting the full amount in the input field? How should we handle that?

then the user should get the same reaction as if he would click sweep?

editwentyone avatar Aug 21 '24 07:08 editwentyone