refactor: remove unused testnet config for swaps#24244
Merged
GeorgeGkas merged 4 commits intomainfrom Jan 7, 2026
Merged
Conversation
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
infiniteflower
approved these changes
Jan 5, 2026
SteP-n-s
approved these changes
Jan 5, 2026
Contributor
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThis PR removes testnet chain support from the swaps functionality by:
The changes are focused on removing testnet support, which should not affect production users. However, since:
Running SmokeSwaps and SmokeTrade tests will verify that production swaps functionality remains intact after removing testnet support. The risk is medium because while the changes are well-scoped to testnet removal, they touch core swaps infrastructure. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
In MM mobile, we define an array of allowed testnets for swaps. This is consumed only on DEV env and is used by some utilities like isSwapsAllowed. To complete the legacy migration we will have to take care of those utilities (either remove or migrate) but before that, this PR removes the dependency to testnets and reduce the tech debt of the swaps module.
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/SWAPS-3594
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Removes testnet-specific swaps configuration and dev-only paths, simplifying chain gating and feature flag handling for Swaps.
SWAPS_TESTNET_CHAIN_IDandallowedTestnetChainIds; removes__DEV__andONLY_MAINNETbranching inisSwapsAllowedUI/Swaps/utilsandEngine/constantsto include only supported mainnets and multichain scopesgetFeatureFlagChainIdto identity and adjusts liveness/feature flag mapping inreducers/swapsgetFeatureFlagChainIdWritten by Cursor Bugbot for commit fba3425. This will update automatically on new commits. Configure here.