Skip to content

Commit f49acb0

Browse files
authored
Merge pull request #86 from liquality/feat/add-arbitrum-tokens
feat: Add arbitrum tokens
2 parents ef6129b + f5b7a09 commit f49acb0

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"ARBUSDC": {
3+
"name": "Arbitrum USD Coin",
4+
"code": "USDC",
5+
"decimals": 6,
6+
"contractAddress": "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
7+
"color": "#5b31b9",
8+
"coinGeckoId": "usd-coin",
9+
"matchingAsset": "USDC"
10+
},
11+
"ARBUSDT": {
12+
"name": "Arbitrum Tether USD",
13+
"code": "USDT",
14+
"decimals": 6,
15+
"contractAddress": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
16+
"color": "#5b31f9",
17+
"coinGeckoId": "tether",
18+
"matchingAsset": "USDT"
19+
},
20+
"ARBDAI": {
21+
"name": "Arbitrum DAI",
22+
"code": "DAI",
23+
"decimals": 18,
24+
"contractAddress": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
25+
"color": "#3b31a9",
26+
"coinGeckoId": "dai",
27+
"matchingAsset": "DAI"
28+
}
29+
}

src/assets/erc20/index.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import rskTokens from './rsk-tokens.json'
55
import polygonTokens from './polygon-tokens.json'
66
import avalancheTokens from './avalanche-tokens.json'
77
import terraTokens from './terra-tokens.json'
8+
import arbitrumTokens from './arbitrum-tokens.json'
89

910
import { TESTNET_CONTRACT_ADDRESSES, TESTNET_TOKENS } from '../testnet'
1011
import { Asset, ChainId, AssetType, AssetMap } from '../../types'
@@ -40,8 +41,21 @@ const terraTokensData = mapValues(terraTokens, (tokenData) => ({
4041
sendGasLimit: sendGasLimits.TERRA
4142
}))
4243

44+
const arbitrumTokensData = mapValues(arbitrumTokens, (tokenData) => ({
45+
...tokenData,
46+
chain: ChainId.Arbitrum,
47+
sendGasLimit: sendGasLimits.ARBETH
48+
}))
49+
4350
const erc20Assets: AssetMap = mapValues(
44-
{ ...rskTokensData, ...ethereumTokensData, ...polygonTokensData, ...terraTokensData, ...avalancheTokensData },
51+
{
52+
...rskTokensData,
53+
...ethereumTokensData,
54+
...polygonTokensData,
55+
...terraTokensData,
56+
...avalancheTokensData,
57+
...arbitrumTokensData
58+
},
4559
(tokenData) => ({
4660
...tokenData,
4761
type: 'erc20' as AssetType

0 commit comments

Comments
 (0)