From c40c4aabd5524048a9d9a3249e425bff2c17622c Mon Sep 17 00:00:00 2001 From: Kamil Pyszkowski Date: Mon, 4 Nov 2024 14:20:55 +0100 Subject: [PATCH] Display full amount of TVL when cap is exceeded --- dapp/src/hooks/useTVL.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dapp/src/hooks/useTVL.ts b/dapp/src/hooks/useTVL.ts index 8897caa6a..64d863766 100644 --- a/dapp/src/hooks/useTVL.ts +++ b/dapp/src/hooks/useTVL.ts @@ -22,11 +22,10 @@ const useTVL = () => { const progress = Math.floor( isCapExceeded ? 100 : (totalAssets / TOTAL_VALUE_LOCKED_CAP) * 100, ) - const value = isCapExceeded ? TOTAL_VALUE_LOCKED_CAP : totalAssets return { progress, - value, + value: totalAssets, isCapExceeded, } }