Skip to content

Commit

Permalink
Exclude beefy contracts from the holder list
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Sep 30, 2024
1 parent 53ffc54 commit 9bf3a52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/v1/vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ const getVaultHolders = async (
.map(address => address.toLowerCase())
);

const excludeHolders = uniq([...strategies, ...tokens]);

const res = (
await Promise.all(
getSdksForChain(chainId).map(sdk =>
Expand All @@ -121,7 +123,7 @@ const getVaultHolders = async (
skip,
first,
block: Number(block),
account_not_in: strategies,
account_not_in: excludeHolders,
token_in_1: tokens,
token_in_2: tokens,
}),
Expand Down

0 comments on commit 9bf3a52

Please sign in to comment.