From 0657f024f436224d765bec5d560a59e37542deba Mon Sep 17 00:00:00 2001 From: steemplus Date: Tue, 16 Jul 2019 15:33:41 +0800 Subject: [PATCH] fix voting mana --- vendor/smi/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/smi/utils.js b/vendor/smi/utils.js index 47b9f6f..2e8fc35 100644 --- a/vendor/smi/utils.js +++ b/vendor/smi/utils.js @@ -135,7 +135,7 @@ var getMana = function(account) { const STEEM_VOTING_MANA_REGENERATION_SECONDS =432000; - const estimated_max = getEffectiveVestingSharesPerAccount(account)*1000000; + const estimated_max = (getEffectiveVestingSharesPerAccount(account)-parseFloat(account.vesting_withdraw_rate))*1000000; const current_mana = parseFloat(account.voting_manabar.current_mana); const last_update_time = account.voting_manabar.last_update_time; const diff_in_seconds = Math.round(Date.now()/1000-last_update_time);