RE: New Blurt Frontend https://blurt.buzz

You are viewing a single comment's thread from:

New Blurt Frontend https://blurt.buzz

in blurtopian •  4 years ago 

That's what i used to calculate the vote value.
P.S: it's just estimate

export const calculateVoteValue = (
  vests,
  recentClaims,
  rewardBalance,
  vp = 10000,
  weight = 10000,
) => {
  const vestingShares = parseInt(vests * 1e6, 10);
  const power = vp * weight / 10000 / 50;
  const rshares = power * vestingShares / 10000;
  return rshares / recentClaims * rewardBalance/2;
};
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!