Skip to content

Commit

Permalink
migrate token mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Aug 12, 2024
1 parent 01806ca commit 964ca72
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 56 deletions.
25 changes: 21 additions & 4 deletions projects/helper/coreAssets.json
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,8 @@
"USDC": "0x15D38573d2feeb82e7ad5187aB8c1D52810B1f07",
"USDT": "0x0Cb6F5a34ad42ec934882A05265A7d5F59b51A2f",
"HEX": "0x2b591e99afe9f32eaa6214f7b7629768c40eeb39",
"DAI": "0xefd766ccb38eaf1dfd701853bfce31359239f305"
"DAI": "0xefd766ccb38eaf1dfd701853bfce31359239f305",
"sDAI": "0x30fcb23a906493371b1721c8feb8815804808d74"
},
"onus": {
"WONUS": "0x4c761e48d1e735af551cc38abcbdce1d7faac6e4",
Expand Down Expand Up @@ -1471,7 +1472,8 @@
"WETH": "0x4200000000000000000000000000000000000006",
"USDbC": "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
"USDC": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"DAI": "0x50c5725949a6f0c72e6c4a641f24049a917db0cb"
"DAI": "0x50c5725949a6f0c72e6c4a641f24049a917db0cb",
"USDT": "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"
},
"sei": {
"SEI": "usei",
Expand Down Expand Up @@ -1576,7 +1578,8 @@
"BIFI": "0x047938C3aD13c1eB821C8e310B2B6F889b6d0003",
"WBTC": "0x7b8FAC5F29E101BaaB33c5f9c39d4F85ba2cc7C1",
"BTCB": "0xd267F821F1b8344B5A63626c8c824697194A173E",
"BitcoinUSD": "0x6906Ccda405926FC3f04240187dd4fAd5DF6d555"
"BitcoinUSD": "0x6906Ccda405926FC3f04240187dd4fAd5DF6d555",
"BtcUSD": "0x6906Ccda405926FC3f04240187dd4fAd5DF6d555"
},
"scroll": {
"WETH": "0x5300000000000000000000000000000000000004",
Expand Down Expand Up @@ -1813,7 +1816,6 @@
"btr": {
"ETH": "0xef63d4e178b3180beec9b0e143e0f37f4c93f4c2",
"WBTC": "0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f"

},
"taiko": {
"USDC": "0x07d83526730c7438048D55A4fc0b850e2aaB6f0b",
Expand Down Expand Up @@ -1863,5 +1865,20 @@
"rari": {
"WETH": "0xf037540e51d71b2d2b1120e8432ba49f29edfbd0",
"USDC.e": "0xfbda5f676cb37624f28265a144a48b0d6e87d3b6"
},
"real": {
"RWA": "0x4644066f535ead0cde82d209df78d94572fcbf14"
},
"saakuru": {
"WOAS": "0x557a526472372f1F222EcC6af8818C1e6e78A85f",
"USDC.e": "0x739222D8A9179fE05129C77a8fa354049c088CaA"
},
"bouncebit": {
"wstBBTC": "0x8f083eafcbba2e126ad9757639c3a1e25a061a08"
},
"reya": {
"WETH": "0x6b48c2e6a32077ec17e8ba0d98ffc676dfab1a30",
"USDC": "0x3B860c0b53f2e8bd5264AA7c3451d41263C933F2",
"RUSD": "0xa9f32a851b1800742e47725da54a09a7ef2556a3"
}
}
52 changes: 0 additions & 52 deletions projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,58 +40,6 @@ const fixBalancesTokens = {
ozone: {
// '0x83048f0bf34feed8ced419455a4320a735a92e9d': { coingeckoId: "ozonechain", decimals: 18 }, // was mapped to wrong chain
},
xdc: {
'0x8f9920283470f52128bf11b0c14e798be704fd15': { coingeckoId: 'comtech-gold', decimals: 18 },
},

real: {
'0x4644066f535ead0cde82d209df78d94572fcbf14': { coingeckoId: 're-al', decimals: 18 },
'0xaec9e50e3397f9ddc635c6c429c8c7eca418a143': { coingeckoId: 'arcana-2', decimals: 18 },
'0xce1581d7b4ba40176f0e219b2cac30088ad50c7a': { coingeckoId: 'pearl', decimals: 18 },
},
airdao: {
[ADDRESSES.null]: { coingeckoId: 'amber', decimals: 18 },
[ADDRESSES.airdao.USDC]: { coingeckoId: 'usd-coin', decimals: 18 },
},
lukso: {
[ADDRESSES.null]: { coingeckoId: "lukso-token-2", decimals: 18 },
[ADDRESSES.lukso.WLYX]: { coingeckoId: 'lukso-token-2', decimals: 18 },
},
bfc: {
[ADDRESSES.bfc.BitcoinUSD]: { coingeckoId: "bitcoin-usd-btcfi", decimals: 18, },
},
pulse: {
'0x30fcb23a906493371b1721c8feb8815804808d74': { coingeckoId: 'savings-dai', decimals: 18 },
},
saakuru: {
'0x557a526472372f1F222EcC6af8818C1e6e78A85f': { coingeckoId: 'oasys', decimals: 18 },
'0x739222D8A9179fE05129C77a8fa354049c088CaA': { coingeckoId: 'usd-coin', decimals: 6 }
},
bouncebit: {
'0x8f083eafcbba2e126ad9757639c3a1e25a061a08': { coingeckoId: 'bouncebit-btc', decimals: 18 }
},
ripple: {
"XRP": { coingeckoId: "ripple", decimals: 6 },
},
moonriver: {
'0x8b29344f368b5fa35595325903fe0eaab70c8e1f': { coingeckoId: 'polkamarkets', decimals: 18 },
},
moonbeam: {
'0x8b29344f368b5fa35595325903fe0eaab70c8e1f': { coingeckoId: 'polkamarkets', decimals: 18 },
},
xdai: {
'0x9a2a80c38abb1fdc3cb0fbf94fefe88bef828e00': { coingeckoId: 'polkamarkets', decimals: 18 },
},
celo: {
'0xb4d8a602fff7790eec3f2c0c1a51a475ee399b2d': { coingeckoId: 'polkamarkets', decimals: 18 },
},
reya: {
"0x6b48c2e6a32077ec17e8ba0d98ffc676dfab1a30": { coingeckoId: "ethereum", decimals: 18 },
"0xa9f32a851b1800742e47725da54a09a7ef2556a3": { coingeckoId: "usd-coin", decimals: 6 },
},
base: {
"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2": { coingeckoId: "tether", decimals: 6 },
},
}

ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) })
Expand Down

0 comments on commit 964ca72

Please sign in to comment.