Skip to content

Commit

Permalink
track idex-v4
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Aug 29, 2024
1 parent 03e119a commit 663834c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions projects/helper/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
"hyperliquid",
"icon",
"icp",
"idex",
"imx",
"inevm",
"injective",
Expand Down
1 change: 1 addition & 0 deletions projects/helper/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const DEFAULTS = {
MULTIVERSX_RPC: 'https://api.multiversx.com',
ANKR_API_KEY: '79258ce7f7ee046decc3b5292a24eb4bf7c910d7e39b691384c7ce0cfb839a01',
RENEC_RPC: "https://api-mainnet-beta.renec.foundation:8899/",
IDEX_RPC: "https://xchain-rpc.idex.io",
CRONOS_ZKEVM_RPC_MULTICALL: '0x9b122BF7a96F24EFB7A2b5765c635909dB3458F7',
NEOX_RPC_MULTICALL: '0xD6010D102015fEa9cB3a9AbFBB51994c0Fd6E672',
}
Expand Down
3 changes: 3 additions & 0 deletions projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ const fixBalancesTokens = {
'0xf6f832466Cd6C21967E0D954109403f36Bc8ceaA': { coingeckoId: "ethereum", decimals: 18 },
'0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6': { coingeckoId: "usd-coin", decimals: 6 },
},
idex: {
'0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6': { coingeckoId: "usd-coin", decimals: 6 },
},
}

ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) })
Expand Down
7 changes: 7 additions & 0 deletions projects/idex-v4/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const { sumTokensExport } = require('../helper/unwrapLPs')

module.exports = {
idex: {
tvl: sumTokensExport({ owner: '0xF0b08bd86f8479a96B78CfACeb619cfFeCc5FBb5', tokens: ['0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6']}),
}
}

0 comments on commit 663834c

Please sign in to comment.