Skip to content

Commit 35d01f3

Browse files
sachinBitgoclaude
andcommitted
feat(statics): identify DeFi receipt tokens
Add CoinFeature.RECEIPT_TOKEN to DeFi receipt assets so consumers can distinguish underlying assets from minted receipt tokens. Ticket: DEFI-498 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 16b56f2 commit 35d01f3

2 files changed

Lines changed: 27 additions & 21 deletions

File tree

‎modules/statics/src/allCoinsAndTokens.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5014,7 +5014,7 @@ export const allCoinsAndTokens = [
50145014
'0x1e9e47583f15d45a10df48c0b1846e0492c795d7',
50155015
UnderlyingAsset['baseeth:gusdcq'],
50165016
Networks.main.basechain,
5017-
[...AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE, CoinFeature.EIP1559]
5017+
[...AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE, CoinFeature.EIP1559, CoinFeature.RECEIPT_TOKEN]
50185018
),
50195019
erc20Token(
50205020
'ee820f5e-580d-4aba-85dc-fae843200be6',

‎modules/statics/src/coins/erc20Coins.ts‎

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ export const erc20Coins = [
13341334
8,
13351335
'0x6c8c6b02e7b2be14d4fa6022dfd6d75921d90e4e',
13361336
UnderlyingAsset.CBAT,
1337-
AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE
1337+
[...AccountCoin.DEFAULT_FEATURES_EXCLUDE_SINGAPORE, CoinFeature.RECEIPT_TOKEN]
13381338
),
13391339
erc20(
13401340
'6c9c046a-2d9e-425c-9408-5db99e0ce1a7',
@@ -1375,7 +1375,8 @@ export const erc20Coins = [
13751375
'Compound DAI',
13761376
8,
13771377
'0xf5dce57282a584d2746faf1593d3121fcac444dc',
1378-
UnderlyingAsset.CDAI
1378+
UnderlyingAsset.CDAI,
1379+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.RECEIPT_TOKEN]
13791380
),
13801381
erc20(
13811382
'9e5041fe-a4c5-4c03-b1aa-360b54e939ad',
@@ -1419,15 +1420,18 @@ export const erc20Coins = [
14191420
8,
14201421
'0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5',
14211422
UnderlyingAsset.CETH,
1422-
AccountCoin.getFeaturesByTypeExcluding(
1423-
[
1424-
CoinFeature.CUSTODY_BITGO_SINGAPORE,
1425-
CoinFeature.CUSTODY_BITGO_GERMANY,
1426-
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
1427-
CoinFeature.CUSTODY_BITGO_FRANKFURT,
1428-
],
1429-
ETH_FEATURES
1430-
)
1423+
[
1424+
...AccountCoin.getFeaturesByTypeExcluding(
1425+
[
1426+
CoinFeature.CUSTODY_BITGO_SINGAPORE,
1427+
CoinFeature.CUSTODY_BITGO_GERMANY,
1428+
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
1429+
CoinFeature.CUSTODY_BITGO_FRANKFURT,
1430+
],
1431+
ETH_FEATURES
1432+
),
1433+
CoinFeature.RECEIPT_TOKEN,
1434+
]
14311435
),
14321436
erc20(
14331437
'fd41106e-cf6f-4f0c-9868-a41fbcec8a49',
@@ -1675,7 +1679,7 @@ export const erc20Coins = [
16751679
8,
16761680
'0x158079ee67fce2f58472a96584a73c7ab9ac95c1',
16771681
UnderlyingAsset.CREP,
1678-
ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE
1682+
[...ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE, CoinFeature.RECEIPT_TOKEN]
16791683
),
16801684
erc20(
16811685
'60d46b84-16ea-43c0-b36a-1234114ff69f',
@@ -1752,7 +1756,7 @@ export const erc20Coins = [
17521756
8,
17531757
'0x39aa39c021dfbae8fac545936693ac917d5e7563',
17541758
UnderlyingAsset.CUSDC,
1755-
ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE
1759+
[...ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE, CoinFeature.RECEIPT_TOKEN]
17561760
),
17571761
erc20(
17581762
'62599dbf-9953-4e99-82bd-9582f19c79de',
@@ -1761,7 +1765,7 @@ export const erc20Coins = [
17611765
8,
17621766
'0xc11b1268c1a384e55c48c2391d8d480264a3a7f4',
17631767
UnderlyingAsset.CWBTC,
1764-
ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE
1768+
[...ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE, CoinFeature.RECEIPT_TOKEN]
17651769
),
17661770
erc20(
17671771
'1cc20e86-1e91-49b5-98f0-48f6dd184081',
@@ -1805,7 +1809,7 @@ export const erc20Coins = [
18051809
8,
18061810
'0xb3319f5d18bc0d84dd1b4825dcde5d5f7266d407',
18071811
UnderlyingAsset.CZRX,
1808-
ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE
1812+
[...ACCOUNT_COIN_DEFAULT_FEATURES_EXCLUDE_SINGAPORE, CoinFeature.RECEIPT_TOKEN]
18091813
),
18101814
erc20(
18111815
'4bf54e88-8fe8-4678-86f1-76ce0a75e641',
@@ -8005,7 +8009,8 @@ export const erc20Coins = [
80058009
'Staked USDe',
80068010
18,
80078011
'0x9d39a5de30e57443bff2a8307a4256c8797a3497',
8008-
UnderlyingAsset.SUSDE
8012+
UnderlyingAsset.SUSDE,
8013+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.RECEIPT_TOKEN]
80098014
),
80108015
erc20(
80118016
'fd4d284b-f3eb-4890-ad1f-2d698979b291',
@@ -8403,7 +8408,7 @@ export const erc20Coins = [
84038408
6,
84048409
'0x71fc860f7d3a592a4a98740e39db31d25db65ae8',
84058410
UnderlyingAsset.AUSDT,
8406-
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.BULK_TRANSACTION, CoinFeature.REBASE_TOKEN]
8411+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.BULK_TRANSACTION, CoinFeature.REBASE_TOKEN, CoinFeature.RECEIPT_TOKEN]
84078412
),
84088413
erc20(
84098414
'8d9c0c6b-0ab7-4d98-8b9a-83ae3b77914c',
@@ -8420,7 +8425,7 @@ export const erc20Coins = [
84208425
8,
84218426
'0x9ff58f4ffb29fa2266ab25e75e2a8b3503311656',
84228427
UnderlyingAsset.AWBTC,
8423-
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.BULK_TRANSACTION, CoinFeature.REBASE_TOKEN]
8428+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.BULK_TRANSACTION, CoinFeature.REBASE_TOKEN, CoinFeature.RECEIPT_TOKEN]
84248429
),
84258430
erc20(
84268431
'fbd1d2af-b3c9-4272-aa92-30c1594fc626',
@@ -8429,7 +8434,7 @@ export const erc20Coins = [
84298434
18,
84308435
'0x5165d24277cd063f5ac44efd447b27025e888f37',
84318436
UnderlyingAsset.AYFI,
8432-
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.BULK_TRANSACTION, CoinFeature.REBASE_TOKEN]
8437+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.BULK_TRANSACTION, CoinFeature.REBASE_TOKEN, CoinFeature.RECEIPT_TOKEN]
84338438
),
84348439
erc20(
84358440
'0ff6ec5b-ebff-47b8-aa60-0b02e4ce4de8',
@@ -8678,7 +8683,8 @@ export const erc20Coins = [
86788683
'Compound Dai',
86798684
8,
86808685
'0x5d3a536e4d6dbd6114cc1ead35777bab948e3643',
8681-
UnderlyingAsset.CDAIV2
8686+
UnderlyingAsset.CDAIV2,
8687+
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.RECEIPT_TOKEN]
86828688
),
86838689
erc20(
86848690
'7a01ceff-fe46-4e24-b501-99ca9a6c1ee5',

0 commit comments

Comments
 (0)