Skip to content

Commit

Permalink
fix: remove uneccesary decimals on the treasury page
Browse files Browse the repository at this point in the history
  • Loading branch information
LordCheta committed Oct 29, 2024
1 parent 8d3f31f commit 19b922c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/treasury/TokenHoldings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const TokenHoldings = ({ symbol }: TokenHoldingsProps) => {
return (
<>
<Paragraph size="small">
{toFixed(bucketsTotal[symbol])} {symbol}
{Math.ceil(Number(bucketsTotal[symbol]))} {symbol}
</Paragraph>
{prices[symbol] && (
<Paragraph size="small" className="text-zinc-500">
Expand Down
2 changes: 1 addition & 1 deletion src/app/treasury/TokenHoldingsStRIF.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const TokenHoldingsStRIF = () => {
const symbol = 'stRIF'
return (
<>
<Paragraph size="small">{toFixed(balance)} stRIF</Paragraph>
<Paragraph size="small">{Math.ceil(Number(balance))} stRIF</Paragraph>
{prices[symbol] && (
<Paragraph size="small" className="text-zinc-500">
= USD {formatCurrency(prices[symbol].price * Number(balance)) ?? 0}
Expand Down
2 changes: 1 addition & 1 deletion src/app/treasury/TreasurySection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const TreasurySection = () => {
<MetricsCard
key={`${contract.name}-RIF`}
title={`${contract.name} RIF`}
amount={`${buckets[index]?.RIF?.amount ? toFixed(buckets[index].RIF.amount) : 0} RIF`}
amount={`${buckets[index]?.RIF?.amount ? Math.ceil(Number(buckets[index].RIF.amount)) : 0} RIF`}
fiatAmount={`= USD ${buckets[index]?.RIF?.fiatAmount ? buckets[index].RIF.fiatAmount : 0}`}
contractAddress={contract.address}
data-testid={`${contract.name}-RIF`}
Expand Down

0 comments on commit 19b922c

Please sign in to comment.