Skip to content

Commit 1ff0a45

Browse files
authored
Merge pull request #5123 from BitGo/WIN-3797-sg-coin
chore(statics): gate the coin/token for Singapore trust
2 parents f6d7860 + 8accae7 commit 1ff0a45

File tree

2 files changed

+63
-28
lines changed

2 files changed

+63
-28
lines changed

modules/statics/src/account.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ export class AccountCoin extends BaseCoin {
3737
CoinFeature.CUSTODY_BITGO_SINGAPORE,
3838
];
3939

40+
// Need to gate some high risk coin from SINGAPORE trust
41+
public static readonly DEFAULT_FEATURES_EXCLUDE_SINGAPORE = AccountCoin.DEFAULT_FEATURES.filter(
42+
(feature) => feature !== CoinFeature.CUSTODY_BITGO_SINGAPORE
43+
);
44+
4045
public readonly network: AccountNetwork;
4146

4247
constructor(options: AccountConstructorOptions) {

modules/statics/src/coins.ts

Lines changed: 58 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ const SOL_TOKEN_FEATURES_WITH_FRANKFURT = [...SOL_TOKEN_FEATURES, CoinFeature.CU
369369
const XLM_TOKEN_FEATURES_WITH_FRANKFURT = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
370370
const ZETA_FEATURES = [...COSMOS_SIDECHAIN_FEATURES, CoinFeature.CUSTODY_BITGO_SINGAPORE];
371371
const ZETA_EVM_FEATURES = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_SINGAPORE];
372+
const ETH_FEATURES_WITH_FRANKFURT_EXCLUDE_SINGAPORE = ETH_FEATURES_WITH_FRANKFURT.filter(
373+
(feature) => feature !== CoinFeature.CUSTODY_BITGO_SINGAPORE
374+
);
372375
export const coins = CoinMap.fromCoins([
373376
...lightningCoins,
374377
...utxoCoins,
@@ -2061,7 +2064,8 @@ export const coins = CoinMap.fromCoins([
20612064
'Alongside Crypto Market Index',
20622065
18,
20632066
'0xf17a3fe536f8f7847f1385ec1bc967b2ca9cae8d',
2064-
UnderlyingAsset.AMKT
2067+
UnderlyingAsset.AMKT,
2068+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
20652069
),
20662070
erc20(
20672071
'f050777a-c194-46a1-9f37-ee006b03365d',
@@ -2205,7 +2209,8 @@ export const coins = CoinMap.fromCoins([
22052209
'arteQ NFT Investment Fund',
22062210
0,
22072211
'0x805c2077f3ab224d889f9c3992b41b2f4722c787',
2208-
UnderlyingAsset.ARTEQ
2212+
UnderlyingAsset.ARTEQ,
2213+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
22092214
),
22102215
erc20(
22112216
'908540ad-6793-4bb5-8712-041a4c258d26',
@@ -2453,7 +2458,8 @@ export const coins = CoinMap.fromCoins([
24532458
'Bankless BED Index',
24542459
18,
24552460
'0x2af1df3ab0ab157e1e2ad8f88a7d04fbea0c7dc6',
2456-
UnderlyingAsset.BED
2461+
UnderlyingAsset.BED,
2462+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
24572463
),
24582464
erc20(
24592465
'6a744a2e-e6b6-4bb2-bf7a-7fee330678c3',
@@ -3766,7 +3772,8 @@ export const coins = CoinMap.fromCoins([
37663772
'Stader ETHx',
37673773
18,
37683774
'0xa35b1b31ce002fbf2058d22f30f95d405200a15b',
3769-
UnderlyingAsset.ETHX
3775+
UnderlyingAsset.ETHX,
3776+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
37703777
),
37713778
erc20(
37723779
'a598f01d-06cb-4da8-88b0-31fef308d454',
@@ -4553,7 +4560,8 @@ export const coins = CoinMap.fromCoins([
45534560
'Interest Compounding ETH Index',
45544561
18,
45554562
'0x7c07f7abe10ce8e33dc6c5ad68fe033085256a84',
4556-
UnderlyingAsset.ICETH
4563+
UnderlyingAsset.ICETH,
4564+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
45574565
),
45584566
erc20(
45594567
'85100681-2a5c-4a36-81fa-34361c284a52',
@@ -4625,7 +4633,8 @@ export const coins = CoinMap.fromCoins([
46254633
'Index Coop',
46264634
18,
46274635
'0x0954906da0bf32d5479e25f46056d22f08464cab',
4628-
UnderlyingAsset.INDEX
4636+
UnderlyingAsset.INDEX,
4637+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
46294638
),
46304639
erc20(
46314640
'7ea4ddc4-8247-4a9c-8077-fb111164840d',
@@ -5052,7 +5061,8 @@ export const coins = CoinMap.fromCoins([
50525061
'Liquid Staked ETH',
50535062
18,
50545063
'0x48d93d8c45fb25125f13cdd40529bbeaa97a6565',
5055-
UnderlyingAsset.LSETH
5064+
UnderlyingAsset.LSETH,
5065+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
50565066
),
50575067
erc20(
50585068
'f55a200e-3eba-4336-9f95-4b0578c10d0b',
@@ -5459,7 +5469,8 @@ export const coins = CoinMap.fromCoins([
54595469
'Metaverse Index',
54605470
18,
54615471
'0x72e364f2abdc788b7e918bc238b21f109cd634d7',
5462-
UnderlyingAsset.MVI
5472+
UnderlyingAsset.MVI,
5473+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
54635474
),
54645475
erc20(
54655476
'95a8ea88-32de-4099-a359-603a57b3c3e8',
@@ -5507,7 +5518,8 @@ export const coins = CoinMap.fromCoins([
55075518
'Indexed Finance',
55085519
18,
55095520
'0x86772b1409b61c639eaac9ba0acfbb6e238e5f83',
5510-
UnderlyingAsset.NDX
5521+
UnderlyingAsset.NDX,
5522+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
55115523
),
55125524
erc20(
55135525
'f609f046-6dac-4d6f-9011-4eab449ee730',
@@ -5732,15 +5744,17 @@ export const coins = CoinMap.fromCoins([
57325744
'Staked ETH',
57335745
18,
57345746
'0xf1c9acdc66974dfb6decb12aa385b9cd01190e38',
5735-
UnderlyingAsset.OSETH
5747+
UnderlyingAsset.OSETH,
5748+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
57365749
),
57375750
erc20(
57385751
'3cdd832f-6776-4694-b8a0-90ba4fc50c89',
57395752
'ousg',
57405753
'Ondo Short-Term U.S. Government Bond Fund',
57415754
18,
57425755
'0x1b19c19393e2d034d8ff31ff34c81252fcbbee92',
5743-
UnderlyingAsset.OUSG
5756+
UnderlyingAsset.OUSG,
5757+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
57445758
),
57455759
erc20(
57465760
'ddeee3d2-e34e-4bac-9587-77e4295c6fde',
@@ -5876,7 +5890,8 @@ export const coins = CoinMap.fromCoins([
58765890
'Phuture DeFi Index',
58775891
18,
58785892
'0x632806bf5c8f062932dd121244c9fbe7becb8b48',
5879-
UnderlyingAsset.PDI
5893+
UnderlyingAsset.PDI,
5894+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
58805895
),
58815896
erc20(
58825897
'ac3efe78-4921-44e9-8766-454ce2d3b522',
@@ -6102,7 +6117,8 @@ export const coins = CoinMap.fromCoins([
61026117
'PSTAKE Finance',
61036118
18,
61046119
'0xfb5c6815ca3ac72ce9f5006869ae67f18bf77006',
6105-
UnderlyingAsset.PSTAKE
6120+
UnderlyingAsset.PSTAKE,
6121+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
61066122
),
61076123
erc20(
61086124
'32123c42-32b7-4d26-a662-ae0d2270eecb',
@@ -6118,7 +6134,8 @@ export const coins = CoinMap.fromCoins([
61186134
'New Silver Series 2 DROP',
61196135
18,
61206136
'0xe4c72b4de5b0f9accea880ad0b1f944f85a9daa0',
6121-
UnderlyingAsset.NS2DRP
6137+
UnderlyingAsset.NS2DRP,
6138+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
61226139
),
61236140
erc20(
61246141
'c0468531-8a6b-49b8-acc2-771d9860096e',
@@ -6255,7 +6272,8 @@ export const coins = CoinMap.fromCoins([
62556272
'Qlindo Realestate Investment Token',
62566273
0,
62576274
'0xc18c07a18198a6340cf4d94855fe5eb6dd33b46e',
6258-
UnderlyingAsset.QLINDO
6275+
UnderlyingAsset.QLINDO,
6276+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
62596277
),
62606278
erc20(
62616279
'ced49948-7b64-4696-a1c0-2eca3a63392f',
@@ -6561,7 +6579,8 @@ export const coins = CoinMap.fromCoins([
65616579
'Rocket Pool',
65626580
18,
65636581
'0xd33526068d116ce69f19a9ee46f0bd304f21a51f',
6564-
UnderlyingAsset.RPL
6582+
UnderlyingAsset.RPL,
6583+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
65656584
),
65666585
erc20(
65676586
'bbe17b1a-04e4-4ed8-a941-db52c61f502a',
@@ -6797,7 +6816,7 @@ export const coins = CoinMap.fromCoins([
67976816
18,
67986817
'0xb17548c7b510427baac4e267bea62e800b247173',
67996818
UnderlyingAsset.SMT,
6800-
ETH_FEATURES_WITH_FRANKFURT
6819+
ETH_FEATURES_WITH_FRANKFURT_EXCLUDE_SINGAPORE
68016820
),
68026821
erc20(
68036822
'd736cd6a-55d1-48a5-8cf5-6b920715cb7f',
@@ -6934,7 +6953,8 @@ export const coins = CoinMap.fromCoins([
69346953
'Staked ETH Harbour',
69356954
18,
69366955
'0x65077fa7df8e38e135bd4052ac243f603729892d',
6937-
UnderlyingAsset['SETH-H']
6956+
UnderlyingAsset['SETH-H'],
6957+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
69386958
),
69396959
erc20(
69406960
'af29b7af-55bd-42e1-8ef2-3a95c19744be',
@@ -7062,7 +7082,8 @@ export const coins = CoinMap.fromCoins([
70627082
'OpenEden T-Bills',
70637083
6,
70647084
'0xdd50c053c096cb04a3e3362e2b622529ec5f2e8a',
7065-
UnderlyingAsset.TBILL
7085+
UnderlyingAsset.TBILL,
7086+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
70667087
),
70677088
erc20(
70687089
'56af670b-76df-4e8e-9765-18a90e0f8b4d',
@@ -7531,7 +7552,8 @@ export const coins = CoinMap.fromCoins([
75317552
'Ondo U.S. Dollar Yield',
75327553
18,
75337554
'0x96f6ef951840721adbf46ac996b59e0235cb985c',
7534-
UnderlyingAsset.USDY
7555+
UnderlyingAsset.USDY,
7556+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
75357557
),
75367558
erc20(
75377559
'fd8d8929-ebd3-4d12-81bf-5b8183206741',
@@ -7563,7 +7585,8 @@ export const coins = CoinMap.fromCoins([
75637585
'Superstate Short Duration US Government Securities Fund',
75647586
6,
75657587
'0x43415eb6ff9db7e26a15b704e7a3edce97d31c4e',
7566-
UnderlyingAsset.USTB
7588+
UnderlyingAsset.USTB,
7589+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
75677590
),
75687591
erc20(
75697592
'072bda2d-3c21-40a8-8581-0518b75bace1',
@@ -7579,7 +7602,8 @@ export const coins = CoinMap.fromCoins([
75797602
'US Yield Coin',
75807603
6,
75817604
'0x136471a34f6ef19fe571effc1ca711fdb8e49f2b',
7582-
UnderlyingAsset.USYC
7605+
UnderlyingAsset.USYC,
7606+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
75837607
),
75847608
erc20(
75857609
'ef825ff6-4304-415b-a202-5cfe60e343b4',
@@ -7839,7 +7863,8 @@ export const coins = CoinMap.fromCoins([
78397863
'Wrapped eETH',
78407864
18,
78417865
'0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee',
7842-
UnderlyingAsset.WEETH
7866+
UnderlyingAsset.WEETH,
7867+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
78437868
),
78447869
erc20(
78457870
'7292b88e-0a4d-4044-ba0a-caea267a0bea',
@@ -7935,7 +7960,8 @@ export const coins = CoinMap.fromCoins([
79357960
'Wrapped stETH',
79367961
18,
79377962
'0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0',
7938-
UnderlyingAsset.WSTETH
7963+
UnderlyingAsset.WSTETH,
7964+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
79397965
),
79407966
erc20(
79417967
'2caacc37-cebc-488a-9367-5aa501add555',
@@ -8955,7 +8981,8 @@ export const coins = CoinMap.fromCoins([
89558981
'StakeWise',
89568982
18,
89578983
'0x48c3399719b582dd63eb5aadf12a40b4c3f52fa2',
8958-
UnderlyingAsset.SWISE
8984+
UnderlyingAsset.SWISE,
8985+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
89598986
),
89608987
erc20(
89618988
'ea58f25e-a0dc-4202-804e-9b62741a6e94',
@@ -11021,7 +11048,8 @@ export const coins = CoinMap.fromCoins([
1102111048
'Rio Network',
1102211049
18,
1102311050
'0x3c61297e71e9bb04b9fbfead72a6d3c70e4f1e4a',
11024-
UnderlyingAsset.RN
11051+
UnderlyingAsset.RN,
11052+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
1102511053
),
1102611054
erc20(
1102711055
'9f0bb336-b6a9-4a58-9841-333b836ef186',
@@ -11807,7 +11835,8 @@ export const coins = CoinMap.fromCoins([
1180711835
'Ellipsis X',
1180811836
18,
1180911837
'0xaf41054c1487b0e5e2b9250c0332ecbce6ce9d71',
11810-
UnderlyingAsset['bsc:epx']
11838+
UnderlyingAsset['bsc:epx'],
11839+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
1181111840
),
1181211841
bscToken(
1181311842
'56eac82e-d310-4ba0-b48e-2aaa3761f8e0',
@@ -15467,7 +15496,8 @@ export const coins = CoinMap.fromCoins([
1546715496
'Republic Note',
1546815497
8,
1546915498
'0x7c6a937943f135283a2561938de2200994a8f7a7',
15470-
UnderlyingAsset['avaxc:note']
15499+
UnderlyingAsset['avaxc:note'],
15500+
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
1547115501
),
1547215502
avaxErc20(
1547315503
'929c8d8c-fff3-4702-9dc1-477c70400024',

0 commit comments

Comments
 (0)