Skip to content

Commit

Permalink
Merge pull request #296 from RootstockCollective/fix/DAO_791
Browse files Browse the repository at this point in the history
fix: DAO-791 remove unnecessary decimals on the treasury page
  • Loading branch information
jessgusclark authored Oct 29, 2024
2 parents 96bbf7a + 19b922c commit d35b3be
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 d35b3be

Please sign in to comment.