Page MenuHomePhabricator

[Cashtab] Improvements to token blacklist
ClosedPublic

Authored by kieran709 on Oct 28 2022, 20:10.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Commits
rABC470c8c5f54c5: [Cashtab] Improvements to token blacklist
Summary

Related to task T2761. bannedTokenIds array has been renamed to coingeckoTop500Ids, bannedTokenTickers array has been renamed coingeckoTp500Tickers, bannedTokenNames has been renamed to coingeckoTop500Tickers, bannedTickers and bannedNames arrays have been added and include the most recent scam attempt. isProbablyNotAScamTokenTicker and isProbablyNotAScamTokenName have both been altered accordingly.

Test Plan

cd web/cashtab && npm start
navigate to create eToken screen
test banned names, ids and tickers in both the Token Name input and the Token Ticker input
observe that invalid names and tickers are rejected.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable