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

Cancel cooperatively #13

Open
grunch opened this issue Oct 11, 2024 · 0 comments
Open

Cancel cooperatively #13

grunch opened this issue Oct 11, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@grunch
Copy link
Member

grunch commented Oct 11, 2024

A user can cancel an active order, but will need the counterparty to agree.

To initiates a cooperative cancellation the user have to send a message to Mostro with the action cancel and Mostro responds back with a message with the action: "cooperative-cancel-initiated-by-you"

Also Mostro will send a message to the user's counterparty with the action: "cooperative-cancel-initiated-by-peer" and if they accept the cooperative cancellation they must send Mostro a message with the action "cancel"

Then Mostro will send a message to both parties informing that their order was canceled cooperatively.

Reference: https://mostro.network/protocol/cancel.html#cancel-cooperatively

@grunch grunch added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant