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

Swap Watcher docs #13

Open
smk762 opened this issue Jan 6, 2023 · 0 comments
Open

Swap Watcher docs #13

smk762 opened this issue Jan 6, 2023 · 0 comments
Assignees

Comments

@smk762
Copy link
Contributor

smk762 commented Jan 6, 2023

https://user-images.githubusercontent.com/15745003/182791407-930f5750-bbd7-4bc9-b469-dc73f900918a.jpg

Swap watchers act to complete a swap or refund if one or both sides go offline for too long. This is done in a non-custodial manner, and funds are still governed by HTLC which can only be released to either the maker or the taker's address, and only after specific conditions are met, such as completion on the side that is online and/or a timeout. (to be confirmed)

Takers send all the necessary information to watch the swap on taker/maker chains together with two signed transactions to watchers: one to spend the maker payment (maker payment spend) and the other to refund the taker payment (taker payment refund). If the maker proceeds with the swap and spends the taker payment (and therefore exposes the secret), and the taker doesn't respond for a duration, the watcher sends the maker payment spend transaction to the chain on behalf of the taker (after appending the secret to the redeem script). If the taker sends the taker payment but the maker doesn't spend it, and the taker doesn't send the refund transaction for a duration, then the watchers do it by sending the taker payment refund transaction to the chain.

@smk762 smk762 transferred this issue from KomodoPlatform/developer-docs May 4, 2023
@smk762 smk762 added new docs P1 Important task which needs to be completed soon labels May 4, 2023
@smk762 smk762 self-assigned this May 4, 2023
@smk762 smk762 added on hold and removed P1 Important task which needs to be completed soon labels Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant