fix: whitelist add buy & sell deeplinks#26038
Conversation
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: This is a targeted change that:
The SmokeRamps tag is appropriate because it covers:
No other tags are needed because:
Performance Test Selection: |
|



Description
The purpose of this PR is to fix universal link handling for buy/sell deeplinks by removing the unnecessary "Proceed with
caution" interstitial modal. The issue was that Buy, sell, and swap deeplinks (e.g.,
metamask://buy?chainId=1&amount=275) were triggering an interstitial modal requiring user confirmation. What I did here was to addBUY, BUY_CRYPTO, SELL, SELL_CRYPTO, actions toWHITELISTED_ACTIONSinhandleUniversalLink.ts.Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Small, localized change to deep link gating logic; risk is limited to potentially bypassing the interstitial for buy/sell links if the whitelist is too permissive.
Overview
Buy/sell universal links now skip the “Proceed with caution” interstitial by adding
BUY,BUY_CRYPTO,SELL, andSELL_CRYPTOtoWHITELISTED_ACTIONSinhandleUniversalLink.ts.This changes universal link handling so these ramp-related deeplinks proceed directly while still being treated as supported actions for downstream routing/analytics.
Written by Cursor Bugbot for commit 9e1fc60. This will update automatically on new commits. Configure here.