Skip to content

Commit

Permalink
add chains orderly
Browse files Browse the repository at this point in the history
  • Loading branch information
Define101 committed Oct 5, 2024
1 parent 4fe9365 commit 1f90c77
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions projects/orderly-network/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const ADDRESSES = require('../helper/coreAssets.json')
const { call, view_account, addTokenBalances, sumSingleBalance } = require('../helper/chain/near');
const { sumTokensExport } = require('../helper/unwrapLPs');
const { ethereum } = require('../helper/whitelistedNfts');

const ASSET_MANAGER_CONTRACT = 'asset-manager.orderly-network.near';
const GET_LISTED_TOKENS_METHOD = 'get_listed_tokens';
Expand All @@ -11,6 +12,10 @@ const owner = '0x816f722424b49cf1275cc86da9840fbd5a6167e9'
const tokenAddress = {
arbitrum: ADDRESSES.arbitrum.USDC_CIRCLE,
optimism: ADDRESSES.optimism.USDC_CIRCLE,
base: ADDRESSES.base.USDC,
mantle: ADDRESSES.mantle.USDC,
polygon: ADDRESSES.polygon.USDC_CIRCLE,
ethereum: ADDRESSES.ethereum.USDC
}

async function tvl() {
Expand All @@ -37,5 +42,17 @@ module.exports = {
optimism: {
tvl: sumTokensExport({ owner, tokens: [tokenAddress.optimism] }),
},
base: {
tvl: sumTokensExport({ owner, tokens: [tokenAddress.base] }),
},
mantle: {
tvl: sumTokensExport({ owner, tokens: [tokenAddress.mantle] }),
},
polygon: {
tvl: sumTokensExport({ owner, tokens: [tokenAddress.polygon] }),
},
ethereum: {
tvl: sumTokensExport({ owner, tokens: [tokenAddress.ethereum] }),
},
methodology: 'All the tokens deposited into Orderly Network by chain'
};

0 comments on commit 1f90c77

Please sign in to comment.