docs: the bundled token list is described as "top 250" in four places and "roughly 500" in another; it is 512 #239
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TOKENSinsrc/shared/tokenList.jscontains 512 entries. The documentation disagrees with the code and with itself:README.md:376,:932,:1055,:1115— "top 250"docs/README.md:323— "roughly 500"The count matters rather than being cosmetic: it is the bundled allowlist that decides which tokens appear without the user tracking them, so a reader working out why a token did or did not show up is being given the wrong size for the set.
Pre-existing. Found by the independent review of #226, which corrected the surrounding sentences about filter reach but deliberately left the count alone as out of scope.
Implementation requirements
TOKENS.Definition of done
src/shared/tokenList.js.README.mdanddocs/README.mdagree with each other.make fmtrun over the changed markdown.TODO.mdupdated in the same commit.make checkpasses.Done in #241.
Selection criterion, established from the file header and corroborated by the
commit history: highest-market-cap ERC-20 tokens on Ethereum mainnet, taken as a
point-in-time snapshot from the CoinGecko API, decimals verified on-chain,
addresses EIP-55 checksummed. The "top N by market cap" ranking framing is
therefore accurate and is kept; only the number was wrong. No generator script
exists in the tree, so the file is regenerated out of band and hand-committed.
The count is dropped from all five locations rather than restated as 512, since
five hardcoded numbers drift again on the next regeneration.
README.md's full"Known token symbol verification" description now carries the criterion and
names
TOKENSinsrc/shared/tokenList.jsas the authoritative set; the threeincidental "top-250 token list" mentions become "known-token list", the term the
docs already used elsewhere;
docs/README.mdgets the same criterion inuser-facing wording.
Verified:
make fmtrun,make checkgreen (14 suites, 361 tests,prettier --check .clean) on the branch rebased ontonextat158278d, andscript/cibuildgreen with the containerizedmake checklayer observedexecuting rather than
CACHED.Adjacent, not fixed here: the header comment in
src/shared/tokenList.jssays"511 tokens" and is off by one too. That is a code file and this unit is
docs-only, so it is untouched — filed separately.