Skip to content

Commit

Permalink
fix total supply (#3129)
Browse files Browse the repository at this point in the history
  • Loading branch information
wow-sven authored Dec 30, 2024
1 parent 933dcbb commit 1e31393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion infra/rooch-portal-v2/src/layouts/config-nav-dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@ export const navData = [
},
].filter((item) => !(isMainNetwork() && item.title === 'Apps')),
},
]
].filter((item) => !(isMainNetwork() && item.subheader === 'Tokens'));
// .filter((item) => !(isMainNetwork() && (item.subheader === 'Tokens' || item.subheader === 'Trade')));
4 changes: 2 additions & 2 deletions infra/rooch-portal-v2/src/sections/trade/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ import { ProductItemSkeleton } from 'src/components/skeleton/product-item-skelet
import InscriptionItemBidCard from 'src/components/market/inscription-item-bid-card';

import { GAS_COIN_DECIMALS } from '../../config/constant';
import { useNetworkVariable } from '../../hooks/use-networks';
import { formatUnitPrice } from '../../utils/marketplace';
import { useNetworkVariable } from '../../hooks/use-networks';

export default function MarketplaceView({ params }: { params: { tick: string } }) {
const { tick: marketplaceTick }: { tick: string } = params;
Expand Down Expand Up @@ -437,7 +437,7 @@ export default function MarketplaceView({ params }: { params: { tick: string } }
title="Total Supply"
value={
toCoinBalanceInfo ? (
fNumber(toCoinBalanceInfo?.supply)
fNumber(fromDust(Number(toCoinBalanceInfo?.supply || 0), toCoinBalanceInfo?.decimals || 0).toNumber())
) : (
<Skeleton variant="rounded" />
)
Expand Down

0 comments on commit 1e31393

Please sign in to comment.