From 58aae35c1afb81a36220d08fff884a5214f0c9c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pr=C3=A9vost?= <998369+prevostc@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:34:25 +0200 Subject: [PATCH] Fix beefy balances --- adapters/beefy/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adapters/beefy/src/index.ts b/adapters/beefy/src/index.ts index 72d1667d..64cfac00 100644 --- a/adapters/beefy/src/index.ts +++ b/adapters/beefy/src/index.ts @@ -75,8 +75,7 @@ export const getUserTVLByBlock = async ( } investorTokenBalances[position.user_address][balance.tokenAddress] += - (BigInt(position.token_address) * balance.vaultBalance) / - breakdown.vaultTotalSupply; + (position.balance * balance.vaultBalance) / breakdown.vaultTotalSupply; } }