Skip to content

Commit 8e65cba

Browse files
authored
Merge pull request #59 from Quantus-Network/chore/remove-total-supply
feat: remove total supply
2 parents a7dfd78 + 9b4f695 commit 8e65cba

6 files changed

Lines changed: 6 additions & 21 deletions

File tree

‎src/__generated__/gql.ts‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/__generated__/graphql.ts‎

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/api/chain-status.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
withExcludedRewardTransfers
1515
} from '@/utils/unified-transaction-filters';
1616

17-
const GET_HOME_STATS = gql`
17+
export const GET_HOME_STATS = gql`
1818
query GetHomeChainStats(
1919
$last24HourWhere: unified_transaction_bool_exp!
2020
$last24HourTransferredWhere: unified_transaction_bool_exp!
@@ -30,7 +30,6 @@ const GET_HOME_STATS = gql`
3030
total_cancelled_transfers
3131
circulating_supply
3232
max_supply
33-
total_supply
3433
total_transferred_amount
3534
}
3635
last24Hour: unified_transaction_aggregate(where: $last24HourWhere) {

‎src/components/features/landing/hero/chain-stats/ChainStats.tsx‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export const ChainStats: React.FC<ChainStatsProps> = () => {
6565
totalTransferred,
6666
last24HourTransferred,
6767
maxSupply,
68-
totalSupply,
6968
circulatingSupply
7069
} = useChainStats();
7170

@@ -122,19 +121,13 @@ export const ChainStats: React.FC<ChainStatsProps> = () => {
122121
/>
123122
</CardGroup>
124123

125-
<CardGroup className="grid-cols-1 sm:grid-cols-3">
124+
<CardGroup className="grid-cols-1 sm:grid-cols-2">
126125
<SupplyStatCard
127126
label="Max Supply"
128127
loading={loading}
129128
error={errorMessage}
130129
value={maxSupply}
131130
/>
132-
<SupplyStatCard
133-
label="Total Supply"
134-
loading={loading}
135-
error={errorMessage}
136-
value={totalSupply}
137-
/>
138131
<SupplyStatCard
139132
label="Coin Circulation"
140133
loading={loading}

‎src/components/features/landing/hero/chain-stats/hook.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ export const useChainStats = () => {
108108
totalTransferred: status?.total_transferred_amount,
109109
last24HourTransferred,
110110
maxSupply: status?.max_supply,
111-
totalSupply: status?.total_supply,
112111
circulatingSupply: status?.circulating_supply
113112
};
114113
};

‎src/schemas/chain-status.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export interface HomeChainStatsStatus {
3838
total_cancelled_transfers: number;
3939
circulating_supply: string;
4040
max_supply: string;
41-
total_supply: string;
4241
total_transferred_amount: string;
4342
}
4443

0 commit comments

Comments
 (0)