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

Display all cant-do messages #26

Open
bilthon opened this issue Mar 31, 2024 · 1 comment
Open

Display all cant-do messages #26

bilthon opened this issue Mar 31, 2024 · 1 comment
Labels
feature A new feature

Comments

@bilthon
Copy link
Collaborator

bilthon commented Mar 31, 2024

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 bilthon added the feature A new feature label Mar 31, 2024
@bilthon bilthon changed the title Handle mostro payment release error Display all cant-do messages Apr 2, 2024
@Catrya
Copy link

Catrya commented Apr 23, 2024

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"}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants