Skip to content

[Bug]: Perps close position and modify actions are not geo-restricted #25315

@aganglada

Description

@aganglada

Description

The 'close position' and 'modify' actions in Perps trading are not geo-restricted. Users in geo-restricted regions can access these features, which should be blocked for compliance with regional regulations.

Steps to Reproduce

  1. Use the app from a geo-restricted region (or mock geo-restriction)
  2. Open a position in Perps
  3. Tap the "Close" or "Modify" button on the market details screen
  4. Observe that the action proceeds instead of showing the geo-restriction bottom sheet

Expected Behavior

When a geo-restricted user taps "Close Position" or "Modify":

  • The geo-restriction bottom sheet should be displayed
  • The action should be blocked (no navigation occurs)

Actual Behavior

The close position and modify flows proceed normally without any geo-restriction check.

Screenshots/Recordings

N/A

Additional Context

Severity

This is a compliance issue - geo-restricted users should not be able to close or modify positions.

Metadata

Metadata

Assignees

Labels

INVALID-ISSUE-TEMPLATEIssue's body doesn't match any issue template.RCA-neededIssue root cause analysis neededSev1-highAn issue that may have caused fund loss or access to wallet in the past & may still be ongoingrelease-7.64.0Issue or pull request that will be included in release 7.64.0release-7.65.0Issue or pull request that will be included in release 7.65.0team-perpsPerps teamtype-bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status

To be triaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions