Skip to content

Commit 1de938b

Browse files
authored
Merge pull request #7057 from BitGo/win-6923
feat: gate tokens for BitGo Singapore
2 parents 588313e + 93eb7ca commit 1de938b

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ import {
110110
STX_FEATURES,
111111
SUI_FEATURES,
112112
SUI_TOKEN_FEATURES,
113+
SUI_TOKEN_FEATURES_EXCLUDE_SINGAPORE,
113114
SUI_TOKEN_FEATURES_STAKING,
114115
TAO_FEATURES,
115116
TAO_TOKEN_FEATURES,
@@ -4510,7 +4511,7 @@ export const allCoinsAndTokens = [
45104511
'AFSUI',
45114512
'0xf325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc::afsui::AFSUI',
45124513
UnderlyingAsset['sui:afsui'],
4513-
SUI_TOKEN_FEATURES.filter((feature) => feature !== CoinFeature.CUSTODY_BITGO_SINGAPORE)
4514+
SUI_TOKEN_FEATURES_EXCLUDE_SINGAPORE
45144515
),
45154516
suiToken(
45164517
'af864118-e9ec-47b2-896c-735f0530fb8f',
@@ -4606,7 +4607,7 @@ export const allCoinsAndTokens = [
46064607
'ALKIMI',
46074608
'0x1a8f4bc33f8ef7fbc851f156857aa65d397a6a6fd27a7ac2ca717b51f2fd9489::alkimi::ALKIMI',
46084609
UnderlyingAsset['sui:alkimi'],
4609-
SUI_TOKEN_FEATURES
4610+
SUI_TOKEN_FEATURES_EXCLUDE_SINGAPORE
46104611
),
46114612
tsuiToken(
46124613
'0b8a7919-c37e-4be8-8338-7fc13c6c875e',

modules/statics/src/coinFeatures.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ export const SUI_TOKEN_FEATURES = [
361361
CoinFeature.TSS_COLD,
362362
CoinFeature.BULK_TRANSACTION,
363363
];
364+
export const SUI_TOKEN_FEATURES_EXCLUDE_SINGAPORE = SUI_TOKEN_FEATURES.filter(
365+
(feature) => feature !== CoinFeature.CUSTODY_BITGO_SINGAPORE
366+
);
364367
export const SUI_TOKEN_FEATURES_STAKING = [
365368
...SUI_TOKEN_FEATURES,
366369
CoinFeature.STAKING,

modules/statics/src/coins/bscTokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ export const bscTokens = [
13091309
6,
13101310
'0xfc5a743271672e91d77f0176e5cea581fbd5d834',
13111311
UnderlyingAsset['bsc:slay'],
1312-
BSC_TOKEN_FEATURES
1312+
BSC_TOKEN_FEATURES_EXCLUDE_SINGAPORE
13131313
),
13141314
bscToken(
13151315
'de4424d5-b119-4220-899f-a48727c58a80',

modules/statics/src/coins/erc20Coins.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7799,7 +7799,8 @@ export const erc20Coins = [
77997799
'GATENet',
78007800
18,
78017801
'0x9d7630adf7ab0b0cb00af747db76864df0ec82e4',
7802-
UnderlyingAsset.GATE
7802+
UnderlyingAsset.GATE,
7803+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
78037804
),
78047805
erc20(
78057806
'e173c7c3-106b-4572-9c6c-e56c2f06c9c4',
@@ -11534,7 +11535,8 @@ export const erc20Coins = [
1153411535
'Vision',
1153511536
18,
1153611537
'0x699ccf919c1dfdfa4c374292f42cadc9899bf753',
11537-
UnderlyingAsset['eth:vsn']
11538+
UnderlyingAsset['eth:vsn'],
11539+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
1153811540
),
1153911541
erc20(
1154011542
'c51774c4-c9fd-4cfc-886e-36e084ce7b48',
@@ -11550,7 +11552,8 @@ export const erc20Coins = [
1155011552
'SatLayer',
1155111553
6,
1155211554
'0x51477a3002ee04b7542adfe63ccdb50c00ee5147',
11553-
UnderlyingAsset['eth:slay']
11555+
UnderlyingAsset['eth:slay'],
11556+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
1155411557
),
1155511558
erc20(
1155611559
'0eb44459-7e38-4974-8847-e2fa8a510478',

modules/statics/src/coins/solTokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3035,7 +3035,7 @@ export const solTokens = [
30353035
'DYNoyS3x5qgbccZg7RPXagm4xQzfnm5iwd9o8pMyJtdE',
30363036
'DYNoyS3x5qgbccZg7RPXagm4xQzfnm5iwd9o8pMyJtdE',
30373037
UnderlyingAsset['sol:dynosol'],
3038-
SOL_TOKEN_FEATURES
3038+
SOL_TOKEN_FEATURES_EXCLUDE_SINGAPORE
30393039
),
30403040
solToken(
30413041
'51983e8f-8218-49d4-a2b4-6a6e6b147b36',

0 commit comments

Comments
 (0)