File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 10
10
"node" : " >=20.18.0"
11
11
},
12
12
"dependencies" : {
13
- "@across-protocol/constants" : " ^3.1.58 " ,
13
+ "@across-protocol/constants" : " ^3.1.59 " ,
14
14
"@across-protocol/contracts" : " ^4.0.5" ,
15
15
"@across-protocol/sdk" : " 4.1.49" ,
16
16
"@arbitrum/sdk" : " ^4.0.2" ,
Original file line number Diff line number Diff line change @@ -86,17 +86,20 @@ export function getTranslatedTokenAddress(
86
86
if ( hubChainId === l2ChainId ) {
87
87
return l1Token ;
88
88
}
89
+ const onBNB = l2ChainId === CHAIN_IDs . BNB ;
89
90
if ( compareAddressesSimple ( l1Token , TOKEN_SYMBOLS_MAP . USDC . addresses [ hubChainId ] ) ) {
90
91
const onBase = l2ChainId === CHAIN_IDs . BASE || l2ChainId === CHAIN_IDs . BASE_SEPOLIA ;
91
92
const onZora = l2ChainId === CHAIN_IDs . ZORA ;
92
93
return isNativeUsdc
93
94
? TOKEN_SYMBOLS_MAP . USDC . addresses [ l2ChainId ]
94
- : TOKEN_SYMBOLS_MAP [ onBase ? "USDbC" : onZora ? "USDzC" : "USDC.e" ] . addresses [ l2ChainId ] ;
95
+ : TOKEN_SYMBOLS_MAP [ onBase ? "USDbC" : onZora ? "USDzC" : onBNB ? "USDC-BNB" : "USDC.e" ] . addresses [ l2ChainId ] ;
95
96
} else if (
96
97
l2ChainId === CHAIN_IDs . BLAST &&
97
98
compareAddressesSimple ( l1Token , TOKEN_SYMBOLS_MAP . DAI . addresses [ hubChainId ] )
98
99
) {
99
100
return TOKEN_SYMBOLS_MAP . USDB . addresses [ l2ChainId ] ;
101
+ } else if ( onBNB && compareAddressesSimple ( l1Token , TOKEN_SYMBOLS_MAP . USDT . addresses [ hubChainId ] ) ) {
102
+ return TOKEN_SYMBOLS_MAP [ "USDT-BNB" ] . addresses [ l2ChainId ] ;
100
103
}
101
104
102
105
return getTokenAddress ( l1Token , hubChainId , l2ChainId ) ;
Original file line number Diff line number Diff line change 21
21
resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.57.tgz#7f6d3b00e52e142b04d8a1a72be81bdff631646d"
22
22
integrity sha512-drkdEYdURc4IcUr0KzcehLhmYU20H3WkHfukodcjvcLogDGHFd8p5Uwajd2kMGDu1GwgM5wehGt7KIEqYLw4eg==
23
23
24
- "@across-protocol/constants@^3.1.58 ":
25
- version "3.1.58 "
26
- resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.58 .tgz#0861e654997d25831b613b5f062a57232d89a2de "
27
- integrity sha512-ngtMS0h40EoRKSA7lcKvhbJPKwmuHpfjBKZ4OWRUiCrdHOMEHQ5d9EX6Q8DhDP2njIUSprc4Jn/85CgdkEc2KQ ==
24
+ "@across-protocol/constants@^3.1.59 ":
25
+ version "3.1.59 "
26
+ resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.59 .tgz#48d18955b5016b8b3fb2128ccdb1e8c98911dffb "
27
+ integrity sha512-R5cju53IMSLJ4qQBGmhYnPZ96lxuIDK/bAgQG3A7wSjNtbj6h2fcP+MaTkrH2P5Ew9h4oMPhfJzvCCjA/u4yrg ==
28
28
29
29
"@across-protocol/contracts@^0.1.4":
30
30
version "0.1.4"
You can’t perform that action at this time.
0 commit comments