From e8051394d623b183807864cded9cb048a755cdc2 Mon Sep 17 00:00:00 2001 From: dlin38 Date: Wed, 11 Feb 2026 11:45:08 +0000 Subject: [PATCH] feat: Add RTC reward analytics dashboard Comprehensive analytics dashboard for tracking RTC reward distribution. Features: - Summary cards with total distributed, active miners, avg rewards - Vintage hardware bonus share calculation - Architecture pie chart showing reward distribution - Multiplier impact bar chart (2.5x, 2.0x, 1.5x, 1.0x) - Top 10 earners horizontal bar chart - Interactive earnings calculator - Complete miner leaderboard with rankings - CSV export functionality Analytics: - Real-time balance fetching per miner - Reward share calculations based on multipliers - Architecture classification (PowerPC, ARM, x86, SPARC) - Total RTC distributed tracking - Average reward per miner per epoch Earnings Calculator: - Select hardware type (G4, G5, ARM, Modern) - Input active miners count - Adjust epoch pot size - Calculate per-epoch, per-day, per-month earnings - Accounts for multiplier weights Charts: - Chart.js pie chart for architecture distribution - Bar charts for multiplier impact and top earners - Color-coded by hardware type - Interactive tooltips with detailed stats Leaderboard: - Sortable by balance (default) - Shows rank, miner ID, hardware, balance, multiplier, share - Medal icons for top 3 miners - CSV export with timestamp Technical: - Single HTML file with embedded JavaScript - Fetches from /api/miners and /wallet/balance endpoints - Auto-refresh every 5 minutes - Mobile responsive design - Graceful error handling for CORS Bounty: #41 - RTC Reward Analytics Dashboard (50 RTC) Wallet: dlin38 --- rewards-dashboard.html | 495 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 495 insertions(+) create mode 100644 rewards-dashboard.html diff --git a/rewards-dashboard.html b/rewards-dashboard.html new file mode 100644 index 0000000..2a69aa4 --- /dev/null +++ b/rewards-dashboard.html @@ -0,0 +1,495 @@ + + + + + + RustChain Reward Analytics Dashboard + + + + + + + + + + +
+ + +
+

+ ๐Ÿ“Š + RTC Reward Analytics +

+

Track reward distribution and earnings trends

+
+ + +
+
+
Total RTC Distributed
+
-- RTC
+
All time
+
+
+
Active Miners
+
--
+
Currently earning
+
+
+
Avg Epoch Reward
+
-- RTC
+
Per miner per epoch
+
+
+
Vintage Bonus Share
+
--%
+
PowerPC/SPARC rewards
+
+
+ + +
+
+

Reward Distribution by Architecture

+ +
+ +
+

Multiplier Impact

+ +
+
+ + +
+

Top Earners

+ +
+ + +
+

+ ๐Ÿงฎ + Earnings Calculator +

+
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+ + +
+
+

Miner Leaderboard

+ +
+
+ + + + + + + + + + + + + + +
RankMiner IDHardwareBalanceMultiplierShare
+
+
+ + +
+

RustChain Reward Analytics Dashboard ยท Bounty #41

+

+ GitHub ยท + Discord +

+
+
+ + + +