fix: fix for bug introduced in 0.17.2 blocking range orders#705
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Title
fix: allow range orders with
fiat_amount == 0inorder_actionSummary
v0.17.2 started validating every new order with
check_fiat_amount()unconditionally. Range orders encode the band withmin_amount/max_amountand usefiat_amount == 0, so they were rejected before range handling ran. This change callscheck_fiat_amount()only for single-amount orders (no min/max), restoring correct behavior for range listings without changingmostro-core.Changes
order_action(src/app/order.rs), gatecheck_fiat_amount()onmin_amountandmax_amountboth absent.Summary by CodeRabbit