I just spent like 4 or more hours trying to calculate the value of a vote in Hive/HBD... (I still don't know how pls send halp)

@cryptosharon · 2021-12-02 01:17 · GEMS

image.png

@penguinpablo's hive vote calculator on hive-now.com

I know there must be some formula out there to calculate the STU / Hive Rewards / Vote Value. I know it includes a few things, such as

  • the price of hive
  • the reward balance of the blockchain
  • the total recent claims
  • total hive power
  • vote mana
  • vote weight
  • delegations coming in and out
  • date
  • total vesting fund
  • total vesting shares

There's a formula here but it just doesn't give me a Hive Rewards final value. It gives something like 4179.like 10 decimals. But this calculator says my full vote is 0.51 at 100% mana and weight.

I tried to copy that calculator's code, but @penguinpablo minified it and it's not open source :CC

The following is my attempt at deciphering his minified code. I failed. It gives me -3578169634870.7144 (which is definitely not my vote size lol)

image.png

I'll show some of my failed attempts:

image.png

image.png

image.png

Yeah I might need some help. XD reeeeeeeee so much time

if anyone knows, or knows someone who knows, pls gib formula?

#programming #blog #diary #palnet #neoxian #proofofbrain #writing #hive-148441 #hive-125669 #hive-168088
Payout: 0.000 HBD
Votes: 28
More interactions (upvote, reblog, reply) coming soon.