Skip to content

Commit

Permalink
update velodrome
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Jan 16, 2025
1 parent d074d4a commit e158d31
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 36 deletions.
27 changes: 15 additions & 12 deletions projects/velodrome-CL/index.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@

const factory = require('../helper/abis/uniswap.js')
const {getUniTVL} = require('../helper/unknownTokens.js')
const { getUniTVL } = require('../helper/unknownTokens.js')
const config = {
optimism: { factory: '0x548118C7E0B865C2CfA94D15EC86B666468ac758'},
lisk: { factory: '0x04625B046C69577EfC40e6c0Bb83CDBAfab5a55F'},
fraxtal: { factory: '0x04625B046C69577EfC40e6c0Bb83CDBAfab5a55F'},
//bob: { factory: '0x04625B046C69577EfC40e6c0Bb83CDBAfab5a55F'},
mode: { factory: '0x04625B046C69577EfC40e6c0Bb83CDBAfab5a55F'}
optimism: { factory: '0x548118C7E0B865C2CfA94D15EC86B666468ac758' },
lisk: { },
fraxtal: { },
//bob: {},
mode: { },
ink: { },
soneium: { },
}

Object.keys(config).forEach(chain => {
const { factory } = config[chain]
const { factory = '0x04625B046C69577EfC40e6c0Bb83CDBAfab5a55F' } = config[chain]
module.exports[chain] = {
tvl: getUniTVL({ factory, fetchBalances: true, abis: {
allPairsLength: 'uint256:allPoolsLength',
allPairs: "function allPools(uint) view returns (address)",
} })
tvl: getUniTVL({
factory, fetchBalances: true, abis: {
allPairsLength: 'uint256:allPoolsLength',
allPairs: "function allPools(uint) view returns (address)",
}
})
}
})
35 changes: 11 additions & 24 deletions projects/velodrome-v2/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
const { uniTvlExport } = require('../helper/calculateUniTvl.js')

const tvl = uniTvlExport("0x31832f2a97Fd20664D76Cc421207669b55CE4BC0", undefined, undefined, {
allPairsLength: 'uint256:allPoolsLength',
allPairs: 'function allPools(uint256) view returns (address)',
}, { useDefaultCoreAssets: true, hasStablePools: true, permitFailure: true, })

module.exports = {
misrepresentedTokens: true,
optimism: {
Expand All @@ -8,30 +13,12 @@ module.exports = {
allPairs: 'function allPools(uint256) view returns (address)',
}, { useDefaultCoreAssets: true, hasStablePools: true, permitFailure: true, }),
},
mode: {
tvl: uniTvlExport("0x31832f2a97Fd20664D76Cc421207669b55CE4BC0", undefined, undefined, {
allPairsLength: 'uint256:allPoolsLength',
allPairs: 'function allPools(uint256) view returns (address)',
}, { useDefaultCoreAssets: true, hasStablePools: true, permitFailure: true, }),
},
bob: {
tvl: uniTvlExport("0x31832f2a97Fd20664D76Cc421207669b55CE4BC0", undefined, undefined, {
allPairsLength: 'uint256:allPoolsLength',
allPairs: 'function allPools(uint256) view returns (address)',
}, { useDefaultCoreAssets: true, hasStablePools: true, permitFailure: true, }),
},
lisk: {
tvl: uniTvlExport("0x31832f2a97Fd20664D76Cc421207669b55CE4BC0", undefined, undefined, {
allPairsLength: 'uint256:allPoolsLength',
allPairs: 'function allPools(uint256) view returns (address)',
}, { useDefaultCoreAssets: true, hasStablePools: true, permitFailure: true, }),
},
fraxtal: {
tvl: uniTvlExport("0x31832f2a97Fd20664D76Cc421207669b55CE4BC0", undefined, undefined, {
allPairsLength: 'uint256:allPoolsLength',
allPairs: 'function allPools(uint256) view returns (address)',
}, { useDefaultCoreAssets: true, hasStablePools: true, permitFailure: true, }),
},
mode: { tvl },
bob: { tvl },
lisk: { tvl },
fraxtal: { tvl },
ink: { tvl },
soneium: { tvl },
hallmarks: [
[1687465883, "v2 Migration on OP Mainnet"], // https://twitter.com/VelodromeFi/status/1671979216039202816
]
Expand Down

0 comments on commit e158d31

Please sign in to comment.