File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @across-protocol/sdk" ,
3
3
"author" : " UMA Team" ,
4
- "version" : " 4.1.43 " ,
4
+ "version" : " 4.1.44 " ,
5
5
"license" : " AGPL-3.0" ,
6
6
"homepage" : " https://docs.across.to/reference/sdk" ,
7
7
"files" : [
Original file line number Diff line number Diff line change @@ -66,6 +66,19 @@ export const BRIDGED_USDC_SYMBOLS = [
66
66
TOKEN_SYMBOLS_MAP . USDzC . symbol ,
67
67
] ;
68
68
69
+ export const STABLE_COIN_SYMBOLS = [
70
+ ...BRIDGED_USDC_SYMBOLS ,
71
+ TOKEN_SYMBOLS_MAP . USDB . symbol ,
72
+ TOKEN_SYMBOLS_MAP . USDC . symbol ,
73
+ TOKEN_SYMBOLS_MAP . USDT . symbol ,
74
+ TOKEN_SYMBOLS_MAP . DAI . symbol ,
75
+ TOKEN_SYMBOLS_MAP [ "TATARA-USDC" ] . symbol ,
76
+ TOKEN_SYMBOLS_MAP [ "TATARA-USDT" ] . symbol ,
77
+ TOKEN_SYMBOLS_MAP [ "TATARA-USDS" ] . symbol ,
78
+ TOKEN_SYMBOLS_MAP . GHO . symbol ,
79
+ TOKEN_SYMBOLS_MAP . WGHO . symbol ,
80
+ ] ;
81
+
69
82
export const CUSTOM_GAS_TOKENS = {
70
83
[ CHAIN_IDs . POLYGON ] : "MATIC" ,
71
84
[ CHAIN_IDs . POLYGON_AMOY ] : "MATIC" ,
Original file line number Diff line number Diff line change @@ -109,6 +109,12 @@ export function isBridgedUsdc(tokenSymbol: string): boolean {
109
109
) ;
110
110
}
111
111
112
+ export function isStablecoin ( tokenSymbol : string ) : boolean {
113
+ return constants . STABLE_COIN_SYMBOLS . some (
114
+ ( stablecoinSymbol ) => stablecoinSymbol . toLowerCase ( ) === tokenSymbol . toLowerCase ( )
115
+ ) ;
116
+ }
117
+
112
118
export function getTokenInfo ( l2TokenAddress : string , chainId : number ) : L1Token {
113
119
// @dev This might give false positives if tokens on different networks have the same address. I'm not sure how
114
120
// to get around this...
You can’t perform that action at this time.
0 commit comments