MostroP2P / mostro

Lightning Network peer-to-peer exchange platform on Nostr
https://mostro.network
MIT License
191 stars 32 forks source link

Allow a maker to cancel an order in status waiting-buyer-invoice or waiting-payment #379

Open Catrya opened 3 weeks ago

Catrya commented 3 weeks ago

If a user creates an order but wants to cancel it, if the order has already been taken by someone and is in status waiting-buyer-invoice or waiting-payment, the maker cannot cancel it and has to wait for the taker to cancel the order and go back to status pending to cancel it; but if the taker continues and does his part, then the maker cannot cancel it either, they has to wait for 15 min (or whatever time the mostro has set) to pass for the order to be cancelled because they has not done his part. IMHO this gives bad UX.

I think it would be good to allow the maker of an order to cancel it even if it is in status waiting-buyer-invoice or waiting-payment.

How it would work: When a maker cancels the order it should go to status canceled.

Maker-Seller:

Maker-Buyer: