From c26bf0b4a57173f53c40e89b81b1b2132c8a23ed Mon Sep 17 00:00:00 2001 From: 0xChupaCabra <56636447+0xChupaCabra@users.noreply.github.com> Date: Sun, 21 Jul 2024 20:56:27 +0200 Subject: [PATCH] remove wrong sickle (#11055) --- projects/vfat/index.js | 6 +++++- projects/vfat/utils.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/vfat/index.js b/projects/vfat/index.js index 14f334de4a50..5fcc39dd58d1 100644 --- a/projects/vfat/index.js +++ b/projects/vfat/index.js @@ -197,7 +197,11 @@ async function tvlBaseOptimism(api) { // TVL calculation for Arbitrum and Linea async function tvlArbitrumLinea(api) { const { factory, gaugeFactory, gaugeFactory2, voter, fromBlock, fromBlockSickle, chainName } = config[api.chain]; - const sickles = await fetchSickles(api, factory, fromBlockSickle); + const blacklistedSickles = ['0x4989D5e508eBa5D4999b6A34FB30021e1f1bB4d8']; + let sickles = await fetchSickles(api, factory, fromBlockSickle); + if (chainName === 'linea') { + sickles = sickles.filter(sickle => !blacklistedSickles.includes(sickle)); + } const gauges = await fetchGauges2(api, fromBlock, gaugeFactory, gaugeFactory2, voter, chainName); const stakingTokens = await api.multiCall({ abi: 'address:stake', calls: gauges.lp }); diff --git a/projects/vfat/utils.js b/projects/vfat/utils.js index 8f02f4f39345..0339c2e58325 100644 --- a/projects/vfat/utils.js +++ b/projects/vfat/utils.js @@ -4,7 +4,7 @@ const { sumTokens2 } = require('../helper/unwrapLPs'); async function sumLPBalances(api, gauges, sickles, lpTokens) { api.log(api.chain, sickles.length, gauges.length,) lpTokens.forEach((lpToken, index) => lpTokens[index] = lpToken.toLowerCase()) - let minLPValue = 10e3 + let minLPValue = 4e3 if (lpTokens.length > 200) minLPValue = 15e3 if (lpTokens.length > 400) minLPValue = 25e3