Skip to content

Commit

Permalink
chore: round total tvl to 2 decimals (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab authored Nov 26, 2024
1 parent 82700e3 commit d353626
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const FinalityProvider: React.FC<FinalityProviderProps> = ({
<div className="flex items-center gap-1">
<p className="hidden sm:flex lg:hidden">Delegation:</p>
<p>
{maxDecimals(satoshiToBtc(stakeSat), 8)} {coinName}
{maxDecimals(satoshiToBtc(stakeSat), 2)} {coinName}
</p>
<span
className="inline-flex cursor-pointer text-xs sm:hidden"
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/Stats/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ export const Stats: React.FC = () => {
{
title: "Confirmed TVL",
value: stakingStats?.activeTVLSat
? `${maxDecimals(satoshiToBtc(stakingStats.activeTVLSat), 8)} ${coinName}`
? `${maxDecimals(satoshiToBtc(stakingStats.activeTVLSat), 2)} ${coinName}`
: 0,
icon: confirmedTvl,
},
{
title: "Pending Stake",
value: stakingStats?.unconfirmedTVLSat
? `${maxDecimals(satoshiToBtc(stakingStats.unconfirmedTVLSat - stakingStats.activeTVLSat), 8)} ${coinName}`
? `${maxDecimals(satoshiToBtc(stakingStats.unconfirmedTVLSat - stakingStats.activeTVLSat), 2)} ${coinName}`
: 0,
icon: pendingStake,
tooltip:
Expand Down

0 comments on commit d353626

Please sign in to comment.