-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
update return_per_1000
to return value in RAO
#213
base: development
Are you sure you want to change the base?
Conversation
e491531
to
4055bc0
Compare
4055bc0
to
fe4ef6b
Compare
return_per_1000
to return value in RAO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great idea, but I am also concerned about rug-pulling anyone who might already be using this RPC call and might not know about the change, since changing by this order of magnitude would be.. quite a change if your code isn't expecting it.
I would prefer we make a new RPC call, maybe return_per_1000_in_rao
, and then add a deprecation notice to the old call with the intention that we will eventually remove it
does that sound reasonable? cc @unconst
I suppose we could forgo this step if we are truly certain no one is able to make use of this RPC call as is because the result is currently useless across the board, but you never know who is using what at the end of the day.
also there is now a merge conflict ;)
this has been merged into the main branch already. |
my bad, it's not actually merged yet. |
@cuteolaf did you have any thoughts on my comment? |
The RPC call
delegateInfo.getDelegates
provides information for delegates.e.g.
The problem is that
return_per_1000
is 0 for most of the delegates.It's because the actual value is in the range of (0, 1).
Those delegates with
return_per_1000
> 1 are mostly weight copiers, who are not actually contributing to the network, but only trying to get rewarded.To fix this problem, I'd like to suggest updating
return_per_1000
to show the value in RAO(10^-9
TAO).That being said, this formula can be updated.
CURRENT:
return_per_1000 = emissions_per_day * 0.82 / (total_stake / 1000);
PROPOSED:
return_per_1000 = emissions_per_day * 0.82 / (total_stake / 1000) * 10 ^ 9
-->return_per_1000 = emissions_per_day * 0.82 / total_stake * 10 ^ 12
I've already tested this approach in our project and it works well. 馃榾