Skip to content

Commit

Permalink
remove wrong sickle (#11055)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xChupaCabra authored Jul 21, 2024
1 parent 913db8f commit c26bf0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion projects/vfat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down
2 changes: 1 addition & 1 deletion projects/vfat/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c26bf0b

Please sign in to comment.