Repository navigation
Load OFAC lists directly and show only positive matches (follow-up to #699) - #700
Merged
liangping merged 1 commit intoSep 28, 2026
Merged
Conversation
Follow-up to ping-pub#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.
Disclosure: I'm the developer of Presend and the author of #699. This is a follow-up to my own PR, which I'd like to correct.
What changes
src/libs/ofac.ts, 45 lines, no dependency).Why
Trade-off
Visitors' browsers now fetch six small text files from
raw.githubusercontent.com(CORS allowed, 5 min CDN cache) instead of calling Presend. If you'd rather have no runtime request at all, the lists could be fetched at build time instead, at the cost of being only as fresh as the last deploy. Happy to switch to that if you prefer it. If 0xB10C starts publishing a new list that contains EVM addresses, it needs to be added toEVM_ASSET_LISTS(a comment says so).Testing
vue-tsc --noEmitand a fullvite build: clean.0x175d44451403Edf28469dF03A9280c1197ADb92c) is found, also when written in upper case; a made-up address is not.Sorry for the extra round trip on this one.