feat: perps geoblock flag#39999
Merged
gambinish merged 6 commits intoperps/poc-controller-integrationfrom Feb 12, 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. |
Contributor
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/perps (9 files, +355 -50)
|
Contributor
Builds ready [3e500c1]
UI Startup Metrics (1383 ± 120 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
|
Contributor
Builds ready [9426ff8]
UI Startup Metrics (1378 ± 92 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
|
36337a8
into
perps/poc-controller-integration
22 of 24 checks passed
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
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches perps controller initialization/messaging and gates multiple trading-related UI flows based on a new eligibility signal; incorrect wiring could wrongly block or allow perps actions.
Overview
Adds perps geo-blocking support by introducing
usePerpsEligibility(subscribes toPerpsControllerstate) and wiring it into key perps actions so trading/deposit/position modifications are disabled when a user is ineligible, with a new tooltip string (perpsGeoBlockedTooltip) shown on disabled CTAs.Updates perps controller initialization to bridge Redux
remoteFeatureFlagsinto the controller via a delegatedRemoteFeatureFlagControllermessenger, and adds an env-based fallback (MM_PERPS_BLOCKED_REGIONS) for blocked regions when remote flags are unavailable. Routes now ensure perps pages are wrapped inPerpsControllerProvider, and tests are updated/added for the new hook and fallback parsing.Written by Cursor Bugbot for commit bf86817. This will update automatically on new commits. Configure here.