From e158d31d7ce8ef4daf2aade81d835e3338dc0277 Mon Sep 17 00:00:00 2001 From: g1nt0ki <99907941+g1nt0ki@users.noreply.github.com> Date: Thu, 16 Jan 2025 11:59:11 +0100 Subject: [PATCH] update velodrome --- projects/velodrome-CL/index.js | 27 ++++++++++++++------------ projects/velodrome-v2/index.js | 35 +++++++++++----------------------- 2 files changed, 26 insertions(+), 36 deletions(-) diff --git a/projects/velodrome-CL/index.js b/projects/velodrome-CL/index.js index 4747c74e656a..3327a58b382c 100644 --- a/projects/velodrome-CL/index.js +++ b/projects/velodrome-CL/index.js @@ -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)", + } + }) } }) diff --git a/projects/velodrome-v2/index.js b/projects/velodrome-v2/index.js index 1edd9132b8fe..844546245aae 100644 --- a/projects/velodrome-v2/index.js +++ b/projects/velodrome-v2/index.js @@ -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: { @@ -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 ]