Skip to content

feat: Add batch sell stablecoin feature flag#8705

Merged
infiniteflower merged 2 commits intomainfrom
swaps-4437-batchsell-metrics
May 5, 2026
Merged

feat: Add batch sell stablecoin feature flag#8705
infiniteflower merged 2 commits intomainfrom
swaps-4437-batchsell-metrics

Conversation

@infiniteflower
Copy link
Copy Markdown
Contributor

@infiniteflower infiniteflower commented May 5, 2026

Explanation

Adds an optional batchSellDestStablecoins field 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

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

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 batchSellDestStablecoins feature flag to the bridge remote config, validated as an array of CAIP asset types via ChainConfigurationSchema.

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 batchSellDestStablecoins payloads. Also records the addition in the bridge-controller changelog.

Reviewed by Cursor Bugbot for commit 81d696d. Bugbot is set up for automated code reviews on this repo. Configure here.

@infiniteflower infiniteflower requested review from a team as code owners May 5, 2026 18:39
@infiniteflower infiniteflower changed the title Add batch sell stablecoin feature flag feat: Add batch sell stablecoin feature flag May 5, 2026
@infiniteflower infiniteflower added this pull request to the merge queue May 5, 2026
Merged via the queue into main with commit db4cc9e May 5, 2026
366 checks passed
@infiniteflower infiniteflower deleted the swaps-4437-batchsell-metrics branch May 5, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants