HomePhabricator

[Cashtab] Improvements to token blacklist

Description

[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.

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D12393

Details

Provenance
kieran709Authored on Oct 28 2022, 19:47
kieran709Pushed on Oct 28 2022, 21:06
Reviewer
Restricted Project
Differential Revision
D12393: [Cashtab] Improvements to token blacklist
Parents
rABC9567356c5ed8: [Cashtab] Lessen spacing between from and contactName in Tx.js
Branches
Unknown
Tags
Unknown