Skip to content
docs

TokenRiskCode

TokenRiskCode = "unlisted" | "impersonation" | "odd-characters" | "no-symbol" | "zero-supply" | "unusual-decimals" | TokenFlag

Defined in: assess.ts:17

Why a token deserves a warning:

  • unlisted: always — the wallet’s list does not include it, and anyone can deploy a token with any name and logo.
  • impersonation: its symbol reads as a known token’s (USDC, ETH, …), look-alike letters included.
  • odd-characters: its symbol or name uses characters outside plain ASCII, or invisible ones.
  • no-symbol: it reports no symbol.
  • zero-supply: nothing has been minted.
  • unusual-decimals: more than 24 decimals.
  • a TokenFlag read from the chain (issuer powers, Token-2022 extensions).