Skip to content

Commit

Permalink
track uni v2 tvl
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Feb 21, 2024
1 parent edd44ee commit badd548
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions projects/uniswap-v2/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { getChainTvl } = require('../helper/getUniSubgraphTvl');
const { getUniTVL } = require('../helper/unknownTokens');

const v2graph = getChainTvl({
ethereum: 'https://api.thegraph.com/subgraphs/name/ianlapham/uniswap-v2-dev'
Expand All @@ -11,3 +12,21 @@ module.exports = {
tvl: v2graph('ethereum'),
},
}

const config = {
// ethereum: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f',
optimism: '0x0c3c1c532F1e39EdF36BE9Fe0bE1410313E074Bf',
arbitrum: '0xf1D7CC64Fb4452F05c498126312eBE29f30Fbcf9',
avax: '0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C',
base: '0x8909dc15e40173ff4699343b6eb8132c65e18ec6',
bsc: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6',
polygon: '0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C',
celo: '0x79a530c8e2fA8748B7B40dd3629C0520c2cCf03f'
}

Object.keys(config).forEach(chain => {
const factory = config[chain]
module.exports[chain] = {
tvl: getUniTVL({ factory, useDefaultCoreAssets: true, })
}
})
2 changes: 1 addition & 1 deletion projects/uniswap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const graphs = {

const blacklists = {
base: ['0xb17d69c91135516b0256c67e8bd32cd238b56161'],
ethereum: ['0xa850478adaace4c08fc61de44d8cf3b64f359bec', '0x055284a4ca6532ecc219ac06b577d540c686669d', '0x8c0411f2ad5470a66cb2e9c64536cfb8dcd54d51', '0x277667eb3e34f134adf870be9550e9f323d0dc24', '0x4c83a7f819a5c37d64b4c5a2f8238ea082fa1f4e', '0x290a6a7460b308ee3f19023d2d00de604bcf5b42', '0x4b5ab61593a2401b1075b90c04cbcdd3f87ce011', '0x582d23c7ec6b59afd041a522ff64ff081e8c0d2d', '0x1f98431c8ad98523631ae4a59f267346ea31f984', '0xaf44e10ed87d90f28bff2d1fbef1f64b090f5ebb', '0xdfef6416ea3e6ce587ed42aa7cb2e586362cbbfa', '0x7e9c15c43f0d6c4a12e6bdff7c7d55d0f80e3e23', '0x1111111becab3c8866712ebf23fc4741010b8dce', '0x77777777b79f2fa437bf526169f98aa0c884c4b7'],
ethereum: ['0xa850478adaace4c08fc61de44d8cf3b64f359bec', '0x055284a4ca6532ecc219ac06b577d540c686669d', '0x8c0411f2ad5470a66cb2e9c64536cfb8dcd54d51', '0x277667eb3e34f134adf870be9550e9f323d0dc24', '0x4c83a7f819a5c37d64b4c5a2f8238ea082fa1f4e', '0x290a6a7460b308ee3f19023d2d00de604bcf5b42', '0x4b5ab61593a2401b1075b90c04cbcdd3f87ce011', '0x582d23c7ec6b59afd041a522ff64ff081e8c0d2d', '0x1f98431c8ad98523631ae4a59f267346ea31f984', '0xaf44e10ed87d90f28bff2d1fbef1f64b090f5ebb', '0xdfef6416ea3e6ce587ed42aa7cb2e586362cbbfa', '0x7e9c15c43f0d6c4a12e6bdff7c7d55d0f80e3e23', '0x1111111becab3c8866712ebf23fc4741010b8dce', '0x77777777b79f2fa437bf526169f98aa0c884c4b7', '0x630d98424efe0ea27fb1b3ab7741907dffeaad78'],
arbitrum: ['0xd4d2f4110878a33ea5b97f0665e518253446161a', '0xB50721BCf8d664c30412Cfbc6cf7a15145234ad1',],
polygon: ['0x8d52c2d70a7c28a9daac2ff12ad9bfbf041cd318', '0x1f98431c8ad98523631ae4a59f267346ea31f984', '0xd5302a8ead77b85ea3326b45f4714e0b3432b233', '0xc951ab482ff11d8df636742e1f1c3fc8037427a9',],
}
Expand Down

0 comments on commit badd548

Please sign in to comment.