feat: Add batch sell stablecoin feature flag#8705
Merged
infiniteflower merged 2 commits intomainfrom May 5, 2026
Merged
Conversation
SteP-n-s
approved these changes
May 5, 2026
micaelae
approved these changes
May 5, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Explanation
Adds an optional
batchSellDestStablecoinsfield to bridge feature flag chain configuration. The field accepts CAIP asset types and lets clients configure destination stablecoins for batch sell flows through the existing bridge feature flag payload.The new field is validated as
CaipAssetType[], preserved when feature flags are formatted, and covered by selector, formatter, and validator tests.References
Related to SWAPS-4437
Checklist
Note
Low Risk
Adds a new optional field to the bridge feature-flag validation schema; main risk is rejecting/accepting remote configs incorrectly if clients/providers send unexpected values.
Overview
Adds an optional chain-level
batchSellDestStablecoinsfeature flag to the bridge remote config, validated as an array of CAIP asset types viaChainConfigurationSchema.Updates selector/feature-flag formatting tests to ensure the new field is preserved when formatting chain IDs to CAIP, and adds validator test coverage for valid vs malformed
batchSellDestStablecoinspayloads. Also records the addition in thebridge-controllerchangelog.Reviewed by Cursor Bugbot for commit 81d696d. Bugbot is set up for automated code reviews on this repo. Configure here.