Skip to content

Commit

Permalink
Display full amount of TVL when cap is exceeded
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski committed Nov 4, 2024
1 parent 4808090 commit c40c4aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dapp/src/hooks/useTVL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit c40c4aa

Please sign in to comment.