Skip to content

fix: limit orders crashing#11968

Merged
gomesalexandre merged 2 commits intodevelopfrom
limit-order-crash
Feb 20, 2026
Merged

fix: limit orders crashing#11968
gomesalexandre merged 2 commits intodevelopfrom
limit-order-crash

Conversation

@NeOMakinG
Copy link
Collaborator

@NeOMakinG NeOMakinG commented Feb 20, 2026

Description

Limit orders are not working anymore because Cowswap changed something in their proxy, its not accepting trailing slash anymore, updating the URLs fixes the thing!

Issue (if applicable)

closes #11966

Risk

High Risk PRs Require 2 approvals

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Testing

Engineering

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

Screenshots (if applicable)

image

Summary by CodeRabbit

  • Bug Fixes
    • Updated CowSwap API endpoints for quote requests and order submissions to improve service compatibility and stability.

@NeOMakinG NeOMakinG requested a review from a team as a code owner February 20, 2026 09:35
Copy link
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gomesalexandre gomesalexandre enabled auto-merge (squash) February 20, 2026 09:58
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 20, 2026

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

Walkthrough

Removes trailing slashes from CowSwap API endpoint URLs across the swapper module and limit order API, changing paths from /api/v1/quote/ and /api/v1/orders/ to their non-trailing-slash equivalents. Updates corresponding test expectations to match the new endpoint format.

Changes

Cohort / File(s) Summary
CowSwapper Endpoints
packages/swapper/src/swappers/CowSwapper/CowSwapper.ts, packages/swapper/src/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.ts, packages/swapper/src/swappers/CowSwapper/getCowSwapTradeRate/getCowSwapTradeRate.ts
Removed trailing slashes from order submission and quote request endpoints.
CowSwapper Tests
packages/swapper/src/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.test.ts
Updated test mock expectations to use non-trailing-slash endpoint URLs.
Limit Order API
src/state/apis/limit-orders/limitOrderApi.ts
Removed trailing slashes from quote and order request endpoint paths.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested reviewers

  • 0xApotheosis
  • NeOMakinG

Poem

🐰 A trailing slash caused quite the fright,
The limit orders took their flight,
But snip! One slash removed with care,
Now endpoints work without despair!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'fix: limit orders crashing' is vague about what was changed; it describes the problem but not the solution (removing trailing slashes from URLs). Consider updating the title to be more specific about the fix, such as 'fix: remove trailing slashes from CowSwap API endpoints' to clarify what was actually changed.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed The PR successfully addresses the linked issue #11966 by removing trailing slashes from CowSwap API endpoints, which fixes the broken limit order functionality caused by Cowswap proxy changes.
Out of Scope Changes check ✅ Passed All changes are scoped to removing trailing slashes from CowSwap API endpoints across five files related to limit orders and quote functionality, directly addressing the root cause of the issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch limit-order-crash

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gomesalexandre gomesalexandre merged commit 1cc427c into develop Feb 20, 2026
4 checks passed
@gomesalexandre gomesalexandre deleted the limit-order-crash branch February 20, 2026 10:10
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 this pull request may close these issues.

Limit orders borked on prod

2 participants