Screen wallets against OFAC's list only for the testnet #24

Merged
Taskuler-bot merged 2 commits from fix/drop-chainalysis-testnet into main 2026-11-30 02:23:13 +00:00
Member

Drops the Chainalysis integration for the testnet. Wallets are screened only against OFAC's list, and the location and VPN checks via ipapi.is stay. This follows Legal's request, and Legal reviews this PR before it ships. Chainalysis can be revisited before mainnet.

Merge after #14–#22 and #23 (approve receipt, fix/approve-receipt-status), in order. Branch = fix/approve-receipt-status (8617996) + two commits (the change, then Legal's footer wording).

Removed

  • The Chainalysis API call and its check, the daily budget and per-network caps for it, and the per-wallet pass cache.
  • Settings: CHAINALYSIS_API_KEY, SCREEN_CHAINALYSIS, CHAINALYSIS_DAILY_CAP, CHAINALYSIS_NETWORK_DAILY_CAP, CHAINALYSIS_DAILY_CAP_PER_48, CHAINALYSIS_DAILY_CAP_PER_24 and CHAINALYSIS_PASS_CACHE_HOURS, removed from config, .env.example and the README. Leftover values in an env file are ignored.
  • The chainalysis check id (server and client types), its mock-mode label, and the tests that only covered Chainalysis.

Kept

  • The OFAC list check, still first and always. An OFAC match is sanctioned even when location/VPN is unavailable (test kept).
  • Location and VPN checks via ipapi.is, with all #20–#22 caps, counters, budget logs and rate limits.
  • Fail closed: any check that can't run refuses the action.

Behaviour note: whole screening results are cached again for SCREEN_CACHE_SECONDS (default 300 s), as in #13. They were cached only while Chainalysis was off, because of its terms. unavailable is still never cached. So a wallet newly added to OFAC's list could still pass for up to five minutes after an earlier pass. This is recorded as a testnet residual risk in docs 0011 (docs PR #4).

User-facing copy (for Legal): one sentence changed, in the testnet footer.

  • Before: "When you post, bid or withdraw, our server sends your wallet address to Chainalysis and your IP address to ipapi.is (Germany) for website screening (sanctions, location and VPN checks)."
  • After (Legal's wording): "When you post, bid or withdraw, our server checks your wallet address against OFAC's sanctions list and sends your IP address to ipapi.is (Germany) for location and VPN, proxy or Tor checks."
  • Also, the mock-mode-only check list no longer shows the "Chainalysis sanctions screen (wallet)" row. No other copy changed; the signed-off screening label, scope line and block messages are unchanged.

Tests: this branch passes 197/197 tests (199 before; Chainalysis-only tests removed or rewritten), both tsc checks and the testnet build, and the built bundle contains no Chainalysis references. A local merge of #14→#23, then this PR passes 205/205, tsc and the build. The only conflict is the known #15 import. Tests make no network calls; the screening tests fail on any request to a host other than the OFAC list, ipapi.is and the Tor list.

Drops the Chainalysis integration for the testnet. Wallets are screened only against OFAC's list, and the location and VPN checks via ipapi.is stay. This follows Legal's request, and **Legal reviews this PR before it ships.** Chainalysis can be revisited before mainnet. Merge **after #14–#22 and #23** (approve receipt, `fix/approve-receipt-status`), in order. Branch = `fix/approve-receipt-status` (`8617996`) + two commits (the change, then Legal's footer wording). **Removed** - The Chainalysis API call and its check, the daily budget and per-network caps for it, and the per-wallet pass cache. - Settings: `CHAINALYSIS_API_KEY`, `SCREEN_CHAINALYSIS`, `CHAINALYSIS_DAILY_CAP`, `CHAINALYSIS_NETWORK_DAILY_CAP`, `CHAINALYSIS_DAILY_CAP_PER_48`, `CHAINALYSIS_DAILY_CAP_PER_24` and `CHAINALYSIS_PASS_CACHE_HOURS`, removed from config, `.env.example` and the README. Leftover values in an env file are ignored. - The `chainalysis` check id (server and client types), its mock-mode label, and the tests that only covered Chainalysis. **Kept** - The OFAC list check, still first and always. An OFAC match is `sanctioned` even when location/VPN is unavailable (test kept). - Location and VPN checks via ipapi.is, with all #20–#22 caps, counters, budget logs and rate limits. - Fail closed: any check that can't run refuses the action. **Behaviour note:** whole screening results are cached again for `SCREEN_CACHE_SECONDS` (default 300 s), as in #13. They were cached only while Chainalysis was off, because of its terms. `unavailable` is still never cached. So a wallet newly added to OFAC's list could still pass for up to five minutes after an earlier pass. This is recorded as a testnet residual risk in docs 0011 (docs PR #4). **User-facing copy (for Legal):** one sentence changed, in the testnet footer. - Before: "When you post, bid or withdraw, our server sends your wallet address to Chainalysis and your IP address to ipapi.is (Germany) for website screening (sanctions, location and VPN checks)." - After (Legal's wording): "When you post, bid or withdraw, our server checks your wallet address against OFAC's sanctions list and sends your IP address to ipapi.is (Germany) for location and VPN, proxy or Tor checks." - Also, the mock-mode-only check list no longer shows the "Chainalysis sanctions screen (wallet)" row. No other copy changed; the signed-off screening label, scope line and block messages are unchanged. **Tests:** this branch passes 197/197 tests (199 before; Chainalysis-only tests removed or rewritten), both `tsc` checks and the testnet build, and the built bundle contains no Chainalysis references. A local merge of #14→#23, then this PR passes 205/205, `tsc` and the build. The only conflict is the known #15 import. Tests make no network calls; the screening tests fail on any request to a host other than the OFAC list, ipapi.is and the Tor list.
Drops the Chainalysis integration for the testnet: wallets are screened only against OFAC's list, and the location
and VPN checks via ipapi.is stay. Removes the Chainalysis API calls, its settings, caps and pass cache, and the
tests that only covered it. Checks still fail closed, and the OFAC check still runs first. The footer line now says
the wallet address is checked against OFAC's list instead of being sent to Chainalysis. This follows Legal's
request; Legal reviews this before it ships.
george approved these changes 2026-11-30 01:57:01 +00:00
Taskuler-bot changed target branch from fix/approve-receipt-status to main 2026-11-30 02:23:08 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
taskuler/web!24
No description provided.