Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Sep 30, 2024
1 parent b35838b commit d9837b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
18 changes: 4 additions & 14 deletions projects/dojoswap-ancient8/index.js
Original file line number Diff line number Diff line change
@@ -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
const { uniTvlExports } = require('../helper/unknownTokens')
module.exports = uniTvlExports({
'ancient8': '0x7d6eb409e2540d27Ea6Dc976E1a549a3dBcBfFBC'
})
1 change: 0 additions & 1 deletion projects/dojoswap/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const BigNumber = require("bignumber.js");
const { getFactoryTvl } = require("../terraswap/factoryTvl");

const factory = {
Expand Down

0 comments on commit d9837b5

Please sign in to comment.