Skip to content

feat(compliance): add dynamic geofenced cash access limits and blacklist engine (closes #465) - #474

Open
shobhamerabacha-star wants to merge 1 commit into
Nullifier-Systems:mainfrom
shobhamerabacha-star:feat/geofence-cash-access-limits-and-blacklist
Open

shobhamerabacha-star wants to merge 1 commit into
Nullifier-Systems:mainfrom
shobhamerabacha-star:feat/geofence-cash-access-limits-and-blacklist

Conversation

@shobhamerabacha-star

Copy link
Copy Markdown

Summary

Closes #465

Implements dynamic geo-fenced cash access compliance checks and blacklist evaluation within Velo spatial services, enforcing spatial polygon intersection checks and rejecting cash requests originating from restricted or sanctioned jurisdictions.

Key Changes

  • Geofence Spatial Models (`apps/api/src/utils/geohash.ts`):
    • Defined `Point` and `GeoFenceZone` schemas supporting `sanctioned`, `high_risk`, `restricted`, and `airport` zone types with configurable `maxCashLimit` and `isBlacklisted` flags.
  • Ray-Casting Polygon Intersection (`apps/api/src/utils/geohash.ts`):
    • Implemented `isPointInPolygon` using standard ray-casting algorithm to determine coordinate containment within irregular polygonal boundaries.
  • Compliance Evaluation Engine (`apps/api/src/utils/geohash.ts`):
    • Implemented `evaluateGeofenceCompliance` returning explicit approval flags, matched zones, and contextual rejection reasons.
  • Unit Testing (`apps/api/src/utils/geohash.test.ts`):
    • Added comprehensive test suite validating point containment, non-boundary points, blacklisted zone rejection, and allowed access points.

Verification

  • `bun test apps/api/src/utils/geohash.test.ts`: 10/10 tests passing green.

…ist engine (closes Nullifier-Systems#465)

- Defines `Point` and `GeoFenceZone` schemas supporting restricted, high-risk, airport, and sanctioned category definitions with `isBlacklisted` flags and cash limits.
- Implements `isPointInPolygon` spatial intersection check using robust ray-casting algorithm.
- Implements `evaluateGeofenceCompliance` to reject transactions originating from blacklisted or sanctioned jurisdictions with actionable contextual reasons.
- Adds comprehensive unit test suite in `apps/api/src/utils/geohash.test.ts` verifying point containment, boundary rejection, and compliance evaluation.
@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

@shobhamerabacha-star is attempting to deploy a commit to the jotelfootball-tech's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
vercel Bot temporarily deployed to Preview – velo-frontend September 11, 2026 17:00 Inactive
@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
velo-frontend Skipped Skipped Sep 11, 2026 5:00pm UTC

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.

[FEAT] Dynamic Geo-Fenced Cash Access Zone Limits & Compliance Blacklist Engine

1 participant