Repository navigation
Add OFAC sanctions check badge for EVM addresses - #699
Merged
Merged
Conversation
Shows a small badge on the account page when the viewed address is in EVM format (0x...), indicating whether it appears on the OFAC Specially Designated Nationals (SDN) sanctions list. Uses Presend's free, no-key /api/address-risk endpoint (https://presend.pages.dev). The check is best-effort and non-blocking: on any failure it silently does nothing, and for non-EVM (bech32) addresses no badge is shown at all, since that format isn't covered by the underlying sanctions list yet. Verified with vue-tsc --noEmit and a full vite build, both clean.
liangping
approved these changes
Sep 21, 2026
liangping
pushed a commit
that referenced
this pull request
Sep 28, 2026
Follow-up to #699. The account page no longer calls the Presend API: it reads the six 0xB10C OFAC lists that contain EVM addresses (ETH, USDT, USDC, ARB, BSC, ETC) once per session from raw.githubusercontent.com, and only shows a badge when the address is listed. The 'Not OFAC sanctioned' badge is removed.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This adds a small, non-intrusive badge on the account page (
account/[address].vue) when the viewed address is in EVM format (0x...), showing whether it appears on the OFAC Specially Designated Nationals (SDN) sanctions list./api/address-riskendpoint (https://presend.pages.dev), which checks against the community-maintained 0xB10C/ofac-sanctioned-digital-currency-addresses republication of OFAC's list.Verified with
vue-tsc --noEmit(clean) and a fullvite build(clean). I didn't have a chain config available locally to verify the badge visually in the running app — chain configs live in ping-pub/mainnet rather than this repo — so a visual check on your end before merging would be worthwhile.