RC Delegation Tool Update + RC -> HP calculation

in Programming & Dev2 years ago (edited)

In my yesterdays post over here I have introduced a new RC delegation tool, which you can access at https://primersion.com/rc.

I implemented a few small improvements, to make the tool even more useful. I would love to see some of those implemented over at PeakD and other frontends in the future as well.

Thanks again for @louis88 for a few more useful inputs.

This post will explain the improvements and how to calculate the equivalent HP amount for your RC delegations.

Improvements

The biggest change I made to the tool is adding an HP mode, which allows you to specifiy the RC you want to delegate in an HP equivalent amount. This does not mean that you will be delegating HP, it's just a conversion as it is more understandable as the large RC values.

You can switch between RC and HP mode using the toggle button on the top. Depending on the selected mode, the input field and the quick action buttons will then specify the amount of RC to delegate in the equivalent amount of HP or in RC directly.
The delegate button on the right will always show you both values:

Additionally I have updated the table with a progress bar for every account you are delegating to. You can easily see, which of them are running out of RC and delegate more to them:

Furthermore the table has an additional column showing the equivalent amount of HP, converted from the amount of RC you delegated.
Above the table your total delegations are shown.

The introduction of HP makes the tool much more user friendly and easier to use, so I would suggest that all frontends will display it that way in the future or add a dual mode to switch between the different units.

RC -> HP Calculation

RC is a very "abstract" unit and you easily get confused with those large numbers that single transactions will take e.g. my current total number of resource credits is 63,083,017,640,811

Humans just aren't great with large numbers, which is why we usually introduce abbreviatons for them. The following list shows an example of such (you probably are familiar with them from hard drive storage):

1 K = 1,000
1 M = 1,000,000
1 G = 1,000,000,000
1 T = 1,000,000,000,000
1 P = 1,000,000,000,000,000
...

Like this the total RC of my account could be written as 63.083T.

One other useful thing is transforming values into some other value, which we are more familiar with.
In case of Hive the first thing that comes into mind is HP of course. HP itself is actually also a converted value, based on VESTS. To calculate the HP of your account you first have to calculate the "Hive per Vests", which is done by fetching the dynamic global properties of the Hive chain and diving the total vesting fund by the total vesting shares:

hive_per_vests =  total_vesting_fund_hive / total_vesting_shares_hive;

Now you can calculate the HP of your account by multiplying the resulting value with the total vests of your account e.g. 69,702,435 * 0.000553 ~ 38,545 HP for my account.

So how to convert RC into HP?

RC itself is directly related to VESTS, so for converting RC to HP you multiply it by hive_per_vests and divide by 10^6:

amount_hp = amount_rc * hive_per_vests / 10^6

e.g. 1,000,000,000 RC = 1G RC ~ 0.553 HP as of now.

As I already mentioned above I have added a mode to the delegation tool, which allows specifying the amount of RC you want to delegate in an HP equivalent, as this is a unit we are more familiar with and tend to understand better.


Let me know what you think about the changes above and if you have any other suggestions for improving usabilty - more new things are to come, so stay tuned.



Vote for my HIVE witness using Keychain.

Sort:  

Awesome work! I love how fast you are work on such small improvements, things that makes it even easier to use for our beloved community.

thanks for your time and hard work!

Thanks again for your inputs!

That's the benefit of working on a project alone vs. in a team, as you can usually implement things faster and don't have to discuss every little change.

Greetings friend, that gives me an answer to a question I asked another person, that is, the conversion of HP to RC to delegate to an account of another user or to a community, excellent, thank you very much for your tutorial which is of great help to all of us users within the platform. Friend, are you Venezuelan?

Other questions I can remove a delegation in Hp and with the conversion delegate in RC, this sells being the same benefit for the community which can be used to continue curing?
I can delegate RC to a Whale and I get profit for it, or the RC is to support others who have been left without RC

I love programming stuff and it's even more awesome if it is actually helpful to other users and used by them! I am an Austrian ;)

The difference between RC and HP is, RC is used for creating transactions on the blockchain. The more (and the larger) txs you create, the more RC is used. HP on the other hand says how much VESTS you have put in your account. So it comes with other benefits, such as rewards for authoring and curating posts, for voting and all kinds of other stuff. RC is actually a "part" of HP and directly related to it - the more HP you have vested into your account, the more RC you have.

So to answer your initial question - I don't think any of the curation services you can delegate to provide rewards for delegating RC, as they won't get any rewards from that either. It's purely used for being able to create transactions on the blockchain. So RC delegation is more for supporting new users or services requiring a lot of RC, as they are creating lots of transactions.

It will still make sense to delegate HP to "curating" services, as they do the hard work of finding quality posts and you won't have to do that yourself. Usually also the reward for curating / voting will be larger for small accounts with not too much HP if they delegate to such services paying out rewards, as small votes (dust votes) won't give the same reward. There are some kinds of thresholds for that I think.

Thank you very much for clarifying my doubts, thanks again for the excellent information.

That's a fast addition to the tool. I don't have rc to delegate rn but I'm being delegated to and its a good thing to help new users like me interact with other Hivers.

Yes it is especially great for exactly that usecase - helping out new users :)

Thank you! I just udes your tool and simply replaced HP delegations to new users with RC delegations. Additional 250HP is free now!

I am happy if the tool is used :) and that's the great thing about the new RC delegations. You can keep the HP to yourself and still support other users.

Very useful + bookmarked.. thanks!

Informative and useful post + awesome and useful tool
Thanks
!discovery 30
@tipu curate

Obwohl ein bisschen spät, freue ich mich diesen Post gefunden zu haben! Jemand musste das machen und du hast es gemacht... Meine ich eine Tool um RC nach etwas verständliches zu übersetzen! ¡Gute Arbeit!

!BEER

Danke! Mittlerweile haben einige andere Frontends etwas ähnliches eingebaut. Aber freut mich wenn es trotzdem noch genützt wird.
!BEER

Thank you for this one! Even the amount of delegation to HP is displayed. Many are still confused regarding this conversion.

untitled.gif

This is what I was looking for.

Thank you so much for your work. You deserve a lot more upvotes.

Thank you. I am happy to help!

I'm using it now. It really works. If only you know how convenient it is for me haha

!MEME


Credit: memess
Earn Crypto for your Memes @ hiveme.me!

!gif awesome

Hi @primersion

After using your tool for 2 hours now, here's my suggestion for improvement:

I hope we can also edit the RC delegation using its HP equivalent.

Right now, our only option in editing the RC delegation using its HP equivalent is by writing the username above and putting the new number.

Thank you for your suggestion. This is actually already on my todo list and will be implemented for one of the next updates :)

Thank you so so much! Very helpful :)

Nice!!!👍

it's fine!!!
!LOL
!PIZZA
!ALIVE

@primersion! You Are Alive so I just staked 0.1 $ALIVE to your account on behalf of @voltz-blag. (4/10)

The tip has been paid for by the We Are Alive Tribe through the earnings on @alive.chat, feel free to swing by our daily chat any time you want.

What is Victorias Secret?
High prices.

Credit: reddit
@primersion, I sent you an $LOLZ on behalf of @voltz-blag

Use the !LOL or !LOLZ command to share a joke and an $LOLZ
(3/10)

PIZZA!

PIZZA Holders sent $PIZZA tips in this post's comments:
@voltz-blag(3/10) tipped @primersion (x1)

You can now send $PIZZA tips in Discord via tip.cc!

Yay! 🤗
Your content has been boosted with Ecency Points, by @primersion.
Use Ecency daily to boost your growth on platform!

Support Ecency
Vote for new Proposal
Delegate HP and earn more


This post was shared and voted inside the discord by the curators team of discovery-it
Join our community! hive-193212
Discovery-it is also a Witness, vote for us here
Delegate to us for passive income. Check our 80% fee-back Program

Congratulations @primersion! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

You distributed more than 63000 upvotes.
Your next target is to reach 64000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Support the HiveBuzz project. Vote for our proposal!

nice