Skip to content

Commit 99302f5

Browse files
committed
Add total supply
1 parent 469da5f commit 99302f5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ui/home/Stats.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type ChainData = {
2626
users: string;
2727
initialSupply: string;
2828
maxSupply: string;
29+
totalSupply: string;
2930
};
3031
errors?: string[];
3132
};
@@ -91,6 +92,7 @@ const Stats = () => {
9192
chainData.data?.staked && itemsCount++;
9293
chainData.data?.users && itemsCount++;
9394
chainData.data?.maxSupply && itemsCount++;
95+
chainData.data?.totalSupply && itemsCount++;
9496

9597
if (data) {
9698
!data.gas_prices && itemsCount--;
@@ -210,6 +212,15 @@ const Stats = () => {
210212
isLoading={ !isChainDataLoaded }
211213
/>
212214
) }
215+
{ chainData.data?.initialSupply && (
216+
<StatsItem
217+
icon="token"
218+
title="Current Supply"
219+
value={ `${chainData.data.totalSupply} ${chain.currency.symbol}` }
220+
_last={ isOdd ? lastItemTouchStyle : undefined }
221+
isLoading={ !isChainDataLoaded }
222+
/>
223+
) }
213224
{ chainData.data?.users && (
214225
<StatsItem
215226
icon="wallet"

0 commit comments

Comments
 (0)