From d207ef6dca411066090ad66b3f1ea5f9a361e7a7 Mon Sep 17 00:00:00 2001 From: surbhi Date: Fri, 19 Dec 2025 10:40:16 -0400 Subject: [PATCH] fixing the TVL calculation --- src/hooks/usePartyPlanner.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hooks/usePartyPlanner.ts b/src/hooks/usePartyPlanner.ts index 85675ff..8ff79ff 100644 --- a/src/hooks/usePartyPlanner.ts +++ b/src/hooks/usePartyPlanner.ts @@ -567,11 +567,9 @@ export function useGetAllPools(offset: number = 0, limit: number = 100) { priceStr = `$${finalPrice.toFixed(4)}`; } - // Calculate TVL (approximate by getting first token balance and multiplying by 3) + // Calculate TVL (approximate by getting first token balance and multiplying by number of tokens) const tokenBalance = Number(balance) / Math.pow(10, decimals); - - console.log('tokenBalance', tokenBalance); - const approximateTVL = tokenBalance * 3; + const approximateTVL = tokenBalance * tokens.length; tvlStr = formatTVL(approximateTVL); } } catch (err) {