From 8ee74ae4ba54a471ec171afc33d17979e4364ed6 Mon Sep 17 00:00:00 2001 From: robcxyz Date: Tue, 6 Feb 2024 20:29:00 -0800 Subject: [PATCH] fix: add back the bonded percent #270 --- src/components/GovernancePage/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/GovernancePage/index.js b/src/components/GovernancePage/index.js index 131b089d..40e3219e 100644 --- a/src/components/GovernancePage/index.js +++ b/src/components/GovernancePage/index.js @@ -464,6 +464,8 @@ class TableRow extends Component { const jailBadge = this.getJailBadge(parseInt(prep.jail_flags, 16)) const rank = index + 1 + const bondedRate = !totalVoted ? 0 : (20*(bonded / Math.pow(10, 18)).toFixed()) / prepVoted + return ( @@ -519,6 +521,7 @@ class TableRow extends Component { {!blackChecked && ( {numberWithCommas(Number(bonded / Math.pow(10, 18)).toFixed())} + {Number(bondedRate*100).toFixed(1)}% )} {!blackChecked && (