From d9837b5eeb25d4b0cc548ef60d047b4b98ab1c82 Mon Sep 17 00:00:00 2001 From: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:45:51 +0200 Subject: [PATCH] code refactor --- projects/dojoswap-ancient8/index.js | 18 ++++-------------- projects/dojoswap/index.js | 1 - 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/projects/dojoswap-ancient8/index.js b/projects/dojoswap-ancient8/index.js index 3fe19dc10cde..f2320073e43a 100644 --- a/projects/dojoswap-ancient8/index.js +++ b/projects/dojoswap-ancient8/index.js @@ -1,14 +1,4 @@ -const { getUniTVL } = require('../helper/unknownTokens') - -const config = { - ancient8: { factory: '0x7d6eb409e2540d27Ea6Dc976E1a549a3dBcBfFBC', key: 'A8ChainMainnet' }, -} - -Object.keys(config).forEach(chain => { - const { factory, key } = config[chain] - module.exports[chain] = { - tvl: getUniTVL({ factory, useDefaultCoreAssets: true, chain, fetchBalances: true }) - } -}) - -module.exports.misrepresentedTokens = true \ No newline at end of file +const { uniTvlExports } = require('../helper/unknownTokens') +module.exports = uniTvlExports({ + 'ancient8': '0x7d6eb409e2540d27Ea6Dc976E1a549a3dBcBfFBC' +}) \ No newline at end of file diff --git a/projects/dojoswap/index.js b/projects/dojoswap/index.js index 0b3632accacc..815afadc13af 100644 --- a/projects/dojoswap/index.js +++ b/projects/dojoswap/index.js @@ -1,4 +1,3 @@ -const BigNumber = require("bignumber.js"); const { getFactoryTvl } = require("../terraswap/factoryTvl"); const factory = {