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

Do not allow the creation of orders with premium/discount if it is not at market price #397

Closed
Catrya opened this issue Dec 3, 2024 · 0 comments · Fixed by #400
Closed

Comments

@Catrya
Copy link
Collaborator

Catrya commented Dec 3, 2024

If Mostro receives a new-order message with:

"amount": 50,
"fiat_amount": 500,
"premium": 3,

it accepts and publishes it

It should not accept orders that have these 3 fields at the same time, because it does not make sense to put a premium or discount if the fiat amount and sats are fixed

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

Successfully merging a pull request may close this issue.

1 participant