mostro-web icon indicating copy to clipboard operation
mostro-web copied to clipboard

Display all `cant-do` messages

Open bilthon opened this issue 1 year ago • 1 comments

When mostro cannot pay the invoice presented by the buyer, a cant-do message is sent to the user. In general we should be surfacing these messages to the UI (we're currently not), and we can start doing it for this particular situation.

The particular message we get is:

{"cant-do":{"version":1,"id":"da4666db-21c7-4fae-bcc5-b764dd10607e","pubkey":null,"action":"cant-do","content":{"text_message":"I tried to send you the sats but the payment of your invoice failed, I will try 3 more times in 180 minutes window, please check your node/wallet is online"}}}

Maybe an alert message should be shown on top.

bilthon avatar Mar 31 '24 19:03 bilthon

Another Cant Do message is when you try to create an offer that is not within the allowed limits. The message is: {"cant-do":{"version":1,"pubkey":null,"action":"cant-do","content":{"text_message":"Quote is out of sats boundaries min is 100 max is 20000"}}}

Catrya avatar Apr 23 '24 14:04 Catrya