From 4fd8a91f8af6f256c1a0482832757e0075e73f77 Mon Sep 17 00:00:00 2001 From: Bobo Date: Mon, 15 Jul 2024 10:48:13 +0200 Subject: [PATCH] Enable period statistics (#1352) * Fetch stake from chain * Optimizations and skeletons --- src/staking-v3/components/DappStatsPanel.vue | 3 +- src/staking-v3/components/PeriodStats.vue | 13 +++++-- .../components/styles/dapp-stats-panel.scss | 6 +++ .../components/styles/period-stats.scss | 10 +++++ src/staking-v3/hooks/usePeriodStats.ts | 37 +++++++++++++++---- .../repositories/DappStakingRepository.ts | 18 +++++++++ .../repositories/IDappStakingRepository.ts | 7 ++++ 7 files changed, 82 insertions(+), 12 deletions(-) diff --git a/src/staking-v3/components/DappStatsPanel.vue b/src/staking-v3/components/DappStatsPanel.vue index 2886e3c3c..766151008 100644 --- a/src/staking-v3/components/DappStatsPanel.vue +++ b/src/staking-v3/components/DappStatsPanel.vue @@ -1,7 +1,8 @@