fix: use withdraw4 for Orderbook V6 in intra-orderbook calldata#437
Conversation
The getCalldata dispatch was falling through to getCalldataForV4Order for all V4 orders, which hardcodes withdraw3 (V5). V6 replaced withdraw3 with withdraw4, causing a revert. Added getCalldataForV4OrderV6 using the V6 ABI and updated the dispatch to route V6 pairs correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 34 minutes and 15 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 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 |
Picks up rainlanguage/sushiswap#44 so wtMSTR (and other tokens only paired with cbBTC on Hydrex) can be priced in ETH terms by the solver. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@coderabbitai assess this PR size classification for the totality of the PR with the following criterias and report it in your comment: S/M/L PR Classification Guidelines:This guide helps classify merged pull requests by effort and complexity rather than just line count. The goal is to assess the difficulty and scope of changes after they have been completed. Small (S)Characteristics:
Review Effort: Would have taken 5-10 minutes Examples:
Medium (M)Characteristics:
Review Effort: Would have taken 15-30 minutes Examples:
Large (L)Characteristics:
Review Effort: Would have taken 45+ minutes Examples:
Additional Factors to ConsiderWhen deciding between sizes, also consider:
Notes:
|
Summary
getCalldatawas routing all V4 orders togetCalldataForV4Order, which hardcodeswithdraw3(Orderbook V5)withdraw3withwithdraw4, causing a revert in the multicallgetCalldataForV4OrderV6usingABI.Orderbook.V6.Primary.Orderbookwithwithdraw4andclear3Pair.isV4OrderbookV6before falling through to the V5 pathlib/sushiswapsubmodule to1b2b675(add cbBTC to Base routing bases sushiswap#44) — adds cbBTC to Base routing bases so tokens only paired with cbBTC on Hydrex (e.g. wtMSTR) can be priced in ETH terms