-
Notifications
You must be signed in to change notification settings - Fork 68
chore: add Uniswap v3 router & factory to addresses #470
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
Conversation
📝 WalkthroughWalkthroughThis pull request updates a type definition, enhances JSON address data, and modifies business logic in address handling. The Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant fetchFactoryV3
participant Addresses
Caller->>fetchFactoryV3: Call fetchFactoryV3(router, addresses)
fetchFactoryV3->>fetchFactoryV3: Check router.chain_id
alt chain_id is 7000 or 7001
fetchFactoryV3->>Addresses: Skip WETH creation
else chain_id is not 7000/7001
fetchFactoryV3->>fetchFactoryV3: Create wethObj
fetchFactoryV3->>Addresses: Verify if wethObj exists
Addresses-->>fetchFactoryV3: Return existence check
fetchFactoryV3->>Addresses: Add wethObj if not present
end
fetchFactoryV3-->>Caller: Return updated addresses array
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
🪧 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
Documentation and Community
|
@@ -6,7 +6,6 @@ title = "" | |||
no-section-label = true | |||
additional-js = ["solidity.min.js"] | |||
additional-css = ["book.css"] | |||
mathjax-support = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is removed automatically by Foundry when generating docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for me
|
||
if (!addresses.some((e: any) => isEqual(e, wethObj))) { | ||
addresses.push(wethObj); | ||
if (router.chain_id !== 7000 && router.chain_id !== 7001) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're already getting WZETA address from /get_chain_params_for_chain
, so we don't need to push it again from this part of the script.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #470 +/- ##
=======================================
Coverage 86.22% 86.22%
=======================================
Files 9 9
Lines 559 559
Branches 129 129
=======================================
Hits 482 482
Misses 77 77 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@zeta-chain/smart-contracts please, review. I need one more approval to merge. |
Summary by CodeRabbit
New Features
Refactor