Skip to content

Commit e7aacc1

Browse files
committed
chore: use effectivestake instead of specific stake in court page
1 parent 74142c1 commit e7aacc1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

web/src/hooks/queries/useCourtDetails.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const courtDetailsQuery = graphql(`
1919
numberStakedJurors
2020
numberVotes
2121
stake
22+
effectiveStake
2223
paidETH
2324
paidPNK
2425
timesPerPeriod

web/src/pages/Courts/CourtDetails/Stats/stats.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export const stats: IStat[] = [
7474
{
7575
title: "PNK Staked",
7676
coinId: 0,
77-
getText: (data) => `${formatPNK(data?.stake)} PNK`,
78-
getSubtext: (data, coinPrice) => formatUSD(Number(formatUnitsWei(data?.stake)) * (coinPrice ?? 0)),
77+
getText: (data) => `${formatPNK(data?.effectiveStake)} PNK`,
78+
getSubtext: (data, coinPrice) => formatUSD(Number(formatUnitsWei(data?.effectiveStake)) * (coinPrice ?? 0)),
7979
color: "green",
8080
icon: PNKIcon,
8181
},

0 commit comments

Comments
 (0)