-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix!: adapt swap_router
for SwapRouter02
#118
Conversation
The `deadline` field was removed from `SwapOptions`, delegating deadline validation to the `multicall` contract. Additionally, integrations with `ISwapRouter` were transitioned to `IV3SwapRouter`, with corresponding method and struct updates. Test cases and calldata expectations were adjusted to reflect the changes.
WalkthroughIn this pull request, the Changes
Possibly related PRs
Poem
[Adjusts glasses] Bazinga! 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)src/abi.rs (1)Line range hint Renaming ISwapRouter to IV3SwapRouter is fitting for versioning. Removing the deadline from these parameter structs shifts timing checks beyond this interface, presumably to your multicall system. Kindly validate all downstream usage aligns with the new struct definitions. ✅ Verification successfulFascinating! The removal of deadline from IV3SwapRouter is indeed validated by empirical evidence. The search results confirm that the deadline parameter has been intentionally moved to the multicall system, as explicitly documented in
While the 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Searching for old references to `ISwapRouter` or usage of `deadline`.
rg -A 5 'ISwapRouter'
rg -A 5 'deadline'
Length of output: 13445 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
The
deadline
field was removed fromSwapOptions
, delegating deadline validation to themulticall
contract. Additionally, integrations withISwapRouter
were transitioned toIV3SwapRouter
, with corresponding method and struct updates. Test cases and calldata expectations were adjusted to reflect the changes.Summary by CodeRabbit
New Features
IV3SwapRouter
.Bug Fixes
deadline
parameter from multiple transaction parameter structs, which may enhance transaction handling.