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

Take sell order #8

Open
Catrya opened this issue May 8, 2024 · 0 comments
Open

Take sell order #8

Catrya opened this issue May 8, 2024 · 0 comments
Labels
help wanted Extra attention is needed 🪙 Reward in Sats ⚡ Resolving this issue has a reward in sats

Comments

@Catrya
Copy link
Collaborator

Catrya commented May 8, 2024

When a buyer takes a sell order at market price they don't know the exact amount of Sats. Buyer will send a message in a nip59 event to Mostro with the order that wants to take. Mostro will calculate the amount of sats for that order, then Mostro will send back to a buyer a message asking for a lightning network invoice with the correct amount of sats that the invoice should have. If the order has a defined amount of sats, Mostro will send the invoice with the correct amount of sats.
Also, Mostro updates the 38383 event about that order to change the status to waiting-buyer-invoice

Then the buyer have to send a nip59 event to Mostro with the lightning invoice, and Mostro will send a nip59 event to the buyer saying that it is waiting for payment from the seller. Also Mostro updates the 38383 Nostr event about that order to change the status to waiting-payment

This issue should address cases with range orders, sending the amount.

References:
https://mostro.network/protocol/take_sell.html
https://mostro.network/protocol/take_sell_range_order.html

Must adhere to this design.

@Catrya Catrya added the 🪙 Reward in Sats ⚡ Resolving this issue has a reward in sats label May 8, 2024
@Catrya Catrya moved this to 🧑‍💻 Looking for Dev in Rewards board ⚡👩‍💻 May 8, 2024
@grunch grunch added the help wanted Extra attention is needed label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed 🪙 Reward in Sats ⚡ Resolving this issue has a reward in sats
Projects
Status: Todo
Development

No branches or pull requests

2 participants