-
Notifications
You must be signed in to change notification settings - Fork 85
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
Ensure the CLI does not hold any funds before exiting #513
Comments
Edge cases of this problem might not be solvable completely. E.g. if max tradable amount for a swap is Note that it will also be hard for the user to hit the exact I think we can ignore these edge cases for now (and accept that tiny amounts might remain in the CLI wallet) but I wanted to point these issues out. @thomaseizinger @bonomat |
This is another edge case: #560 |
I think this can be solved by swapping slightly less than what the user originally wanted. Say max amount if configured as 1 BTC. The user transfers
|
Currently the CLI may hold Bitcoin funds after a swap if:
The CLI holding Bitcoin after a swap leads to unwanted behaviour, because currently a user can only recover the Bitcoin by swapping again.
The current CLI is designed for the lifecycle of one swap. The solution of adding balance & withdraw functionality is not in line with a one swap at the time solution. We propose to add a
--change-address [bitcoin-address]
parameter to the CLI where all "change" Bitcoin (if any) will be transferred by the end of a swap.Note: The Monero is already transferred to the user wallet after redeeming so only the Bitcoin side needs additional work.
The text was updated successfully, but these errors were encountered: