-
Notifications
You must be signed in to change notification settings - Fork 27
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
Chore: sync router configs #313
Conversation
WalkthroughThe recent modifications streamline the router configuration and setup process by eliminating unnecessary components and simplifying data handling. Specifically, the changes involve removing filtering logic for pools, discarding the usage of Changes
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files ignored due to path filters (21)
script/configs/arbitrum/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/aurora/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/avalanche/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/base/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/boba/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/bsc/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/canto/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/cronos/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/dfk/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/dogechain/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/fantom/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/harmony/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/klatyn/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/mainnet/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/metis/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/moonbeam/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/moonriver/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/optimism/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/polygon/SynapseRouter.dc.json
is excluded by:!**/*.json
script/configs/zkevm/SynapseRouter.dc.json
is excluded by:!**/*.json
script/networks.json
is excluded by:!**/*.json
Files selected for processing (2)
- script/router/SaveRouterConfig.s.sol (2 hunks)
- script/router/SetupRouter.s.sol (6 hunks)
Additional comments: 1
script/router/SaveRouterConfig.s.sol (1)
- 45-45: The loop iterates over all tokens without filtering, which was previously done by
_filterPools
. Ensure that removing_filterPools
does not introduce any unintended side effects, such as including tokens that should not be serialized or saved.
@@ -69,38 +66,11 @@ contract SaveRouterConfigScript is BridgeConfigV3Lens, SynapseScript { | |||
tokensConfig = string("tokens").serialize(tokens[i].id, token); | |||
} | |||
fullConfig.serialize("ids", ids); | |||
fullConfig.serialize("tokens", tokensConfig); | |||
fullConfig = fullConfig.serialize("pools", pools); | |||
fullConfig = fullConfig.serialize("tokens", tokensConfig); |
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.
The serialization of tokens
directly assigns tokensConfig
without apparent aggregation or concatenation logic for multiple tokens. This could lead to only the last token's configuration being saved if multiple tokens exist. Verify the serialization logic to ensure it correctly handles multiple tokens.
- tokensConfig = string("tokens").serialize(tokens[i].id, token);
+ tokensConfig = tokensConfig.serialize(tokens[i].id, token);
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
fullConfig = fullConfig.serialize("tokens", tokensConfig); | |
fullConfig = tokensConfig.serialize(tokens[i].id, token); |
Pull Request Test Coverage Report for Build 7903549874Details
💛 - Coveralls |
Description
Fixes # (issue)
Checklist
Summary by CodeRabbit
SwapQuoter
component and its associated setup steps.