feat(ramp): remove unified buy rollout flags and default buy to UB2#29630
feat(ramp): remove unified buy rollout flags and default buy to UB2#29630
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The risk is HIGH because:
Performance Test Selection: |
|


Description
Unified Buy rollout is complete: this change removes the
rampsUnifiedBuyV1/rampsUnifiedBuyV2feature-flag plumbing and related hooks (useRampsUnifiedV1Enabled,useRampsUnifiedV2Enabled,isRampsUnifiedV2Enabled). On-ramp buy always routes through the Unified Buy v2 token/amount stack; sell behavior is unchanged. LegacyRoutes.RAMP.BUYand the unuseduseRampTokenshook are removed. Analytics and order handling use a small shared helpernormalizeRampsOrderTypeForFiatOrderwhere needed. Tests, mocks, fixtures, and docs are updated accordingly.Changelog
CHANGELOG entry: Removed unified buy rollout feature flags; on-ramp buy always uses the Unified Buy v2 flow.
Related issues
Fixes: N/A (internal rollout cleanup).
Manual testing steps
Screenshots/Recordings
Before
N/A — behavior matches the previously flag-enabled UB2 path.
After
N/A — no visual redesign; routing and flag removal only.
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist