Skip to content

Commit

Permalink
fix voting mana
Browse files Browse the repository at this point in the history
  • Loading branch information
stoodkev committed Jul 16, 2019
1 parent f314ab7 commit 0657f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/smi/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0657f02

Please sign in to comment.