MostroP2P / mostro

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

change check order when taking an order #349

Closed Catrya closed 1 month ago

Catrya commented 2 months ago

When someone tries to take a range order that is not pending, if they do not put the amount in the range, Mostro returns OutOfRangeFiatAmount, but then if they put it within the range it returns NotAllowedByStatus. I think Mostro should first check if it is in status pending, and then if it is within the fiat range or in the amount of sats allowed, and not the other way around.