Skip to content

Commit b4c4c6e

Browse files
fix(statics): correct assetids for sip10 tokens
2 parents 67437a3 + 11a693c commit b4c4c6e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

modules/statics/src/coins/sip10Tokens.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import { sip10Token, tsip10Token } from '../account';
22
import { UnderlyingAsset } from '../base';
33
import { STX_TOKEN_FEATURES } from '../coinFeatures';
44

5+
// SIP10 tokens' assetId can be obtained as follows:
6+
// assetId = contractId::tokenName
7+
// contractId is the contract field and can be obtained from the token contract on explorer
8+
// tokenName is the name defined in the SIP10 token contract source code. Search 'define-fungible-token'
9+
// in the contract source code to find the tokenName
510
export const sip10Tokens = [
611
sip10Token(
712
'6157083d-e0b5-4a77-9ace-20c4b96af9ed',
@@ -17,7 +22,7 @@ export const sip10Tokens = [
1722
'stx:ststx',
1823
'stSTX',
1924
6,
20-
'SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token::ststx-token',
25+
'SP4SZE494VC2YC5JYG7AYFQ44F5Q4PYV7DVMDPBG.ststx-token::ststx',
2126
UnderlyingAsset['stx:ststx'],
2227
STX_TOKEN_FEATURES
2328
),
@@ -26,7 +31,7 @@ export const sip10Tokens = [
2631
'stx:alex',
2732
'Alex Labs',
2833
8,
29-
'SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-alex::token-alex',
34+
'SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-alex::alex',
3035
UnderlyingAsset['stx:alex'],
3136
STX_TOKEN_FEATURES
3237
),
@@ -35,7 +40,7 @@ export const sip10Tokens = [
3540
'stx:aeusdc',
3641
'Allbridge Bridged USDC',
3742
6,
38-
'SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc::token-aeusdc',
43+
'SP3Y2ZSH8P7D50B0VBTSX11S7XSG24M1VB9YFQA4K.token-aeusdc::aeUSDC',
3944
UnderlyingAsset['stx:aeusdc'],
4045
STX_TOKEN_FEATURES
4146
),
@@ -44,7 +49,7 @@ export const sip10Tokens = [
4449
'stx:susdh',
4550
'sUSDH',
4651
6,
47-
'SPN5AKG35QZSK2M8GAMR4AFX45659RJHDW353HSG.susdh-token-v1::susdh-token-v1',
52+
'SPN5AKG35QZSK2M8GAMR4AFX45659RJHDW353HSG.susdh-token-v1::susdh',
4853
UnderlyingAsset['stx:susdh'],
4954
STX_TOKEN_FEATURES
5055
),
@@ -53,7 +58,7 @@ export const sip10Tokens = [
5358
'stx:usdh',
5459
'USDH',
5560
8,
56-
'SPN5AKG35QZSK2M8GAMR4AFX45659RJHDW353HSG.usdh-token-v1::usdh-token-v1',
61+
'SPN5AKG35QZSK2M8GAMR4AFX45659RJHDW353HSG.usdh-token-v1::usdh',
5762
UnderlyingAsset['stx:usdh'],
5863
STX_TOKEN_FEATURES
5964
),
@@ -62,7 +67,7 @@ export const sip10Tokens = [
6267
'stx:welsh',
6368
'Welshcorgicoin',
6469
6,
65-
'SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token::welshcorgicoin-token',
70+
'SP3NE50GEXFG9SZGTT51P40X2CKYSZ5CC4ZTZ7A2G.welshcorgicoin-token::welshcorgicoin',
6671
UnderlyingAsset['stx:welsh'],
6772
STX_TOKEN_FEATURES
6873
),

0 commit comments

Comments
 (0)