Skip to content

Commit

Permalink
remove corrupted vaults check
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Oct 16, 2023
1 parent c8841fd commit 3706199
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ const { getArchiveNode, getNetwork } = require("./networks");
const { getWallet } = require('./wallet');
const { getContract } = require('./contractFactory');

const BANNED = ['0x7704A19Cd172E149a378AD1ff1c6428B84Dc5355'.toLowerCase(), '0x9c14b73d452dfc9110c18eb3c2164896962ae163'.toLowerCase()]

const contracts = JSON.parse(fs.readFileSync('contracts.json', { encoding: 'utf8' }));
const redisHost = process.env.REDIS_HOST || '127.0.0.1';
const redisPort = process.env.REDIS_PORT || '6379';
Expand Down Expand Up @@ -44,7 +42,6 @@ const getStatusAt = async (tx, wallet) => {
}

const addVaultStatus = async (transactions) => {
transactions = transactions.filter(tx => !BANNED.includes(tx.vaultAddress.toLowerCase()));
const transactionsWithStatus = [];
const { wallet } = getWallet(getArchiveNode('arbitrum'));
const statuses = await Promise.all(transactions.map(tx => getStatusAt(tx, wallet)))
Expand Down

0 comments on commit 3706199

Please sign in to comment.