Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14864976
D18102.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D18102.id.diff
View Options
diff --git a/cashtab/package-lock.json b/cashtab/package-lock.json
--- a/cashtab/package-lock.json
+++ b/cashtab/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "cashtab",
- "version": "3.24.0",
+ "version": "3.24.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cashtab",
- "version": "3.24.0",
+ "version": "3.24.1",
"dependencies": {
"@zxing/browser": "^0.1.4",
"bignumber.js": "^9.1.2",
diff --git a/cashtab/package.json b/cashtab/package.json
--- a/cashtab/package.json
+++ b/cashtab/package.json
@@ -1,6 +1,6 @@
{
"name": "cashtab",
- "version": "3.24.0",
+ "version": "3.24.1",
"private": true,
"scripts": {
"start": "node scripts/start.js",
diff --git a/cashtab/src/config/tokenBlacklist.ts b/cashtab/src/config/tokenBlacklist.ts
--- a/cashtab/src/config/tokenBlacklist.ts
+++ b/cashtab/src/config/tokenBlacklist.ts
@@ -1533,8 +1533,14 @@
'ellipsis',
'superfarm',
],
- bannedTickers: ['ebtc', 'xbt', 'xecx', 'stXEC', 'firma'],
- bannedNames: ['ebitcoin', 'Staked XEC', 'Staked eCash', 'firma'],
+ bannedTickers: ['ebtc', 'xbt', 'xecx', 'stXEC', 'firma', 'musd'],
+ bannedNames: [
+ 'ebitcoin',
+ 'Staked XEC',
+ 'Staked eCash',
+ 'firma',
+ 'Marianas U.S. Dollar',
+ ],
fiatTickers: cashtabSettingsValidation.fiatCurrency,
fiatNames,
fiatSymbols,
diff --git a/cashtab/src/validation/__tests__/index.test.js b/cashtab/src/validation/__tests__/index.test.js
--- a/cashtab/src/validation/__tests__/index.test.js
+++ b/cashtab/src/validation/__tests__/index.test.js
@@ -239,6 +239,12 @@
it(`isProbablyNotAScam prevents new genesis tx of "Firma" as token name`, () => {
expect(isProbablyNotAScam('Firma')).toBe(false);
});
+ it(`isProbablyNotAScam prevents new genesis tx of "MUSD" as token ticker`, () => {
+ expect(isProbablyNotAScam('MUSD')).toBe(false);
+ });
+ it(`isProbablyNotAScam prevents new genesis tx of "Marianas U.S. Dollar" as token name`, () => {
+ expect(isProbablyNotAScam('Marianas U.S. Dollar')).toBe(false);
+ });
it(`isProbablyNotAScam recognizes "bitcoin" is probably a scam token name`, () => {
expect(isProbablyNotAScam('bitcoin')).toBe(false);
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 20, 23:53 (24 m, 33 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5861377
Default Alt Text
D18102.id.diff (2 KB)
Attached To
D18102: [Cashtab] Prevent token creation with ticker MUSD or name Marianas U.S. Dollar
Event Timeline
Log In to Comment