-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve staking endpoints #1637
Comments
Another huge improvement would be transmitting actual token amounts instead for rationals. Each app desired to show a staked amount would need to implement calculating the tokens. Pulling in @rigelrozanski |
what do you mean by "speaking names" like better names?
Nice, yeah really into this
Yeah we could transmit a decimal amount, that's probably the most easily readable/accurate output, additionally and integer is transmittable (which would be the withdrawal amount) however much of the staking logic requires higher degrees of accuracy so we use rationals, probably want to depict those higher levels of accuracy |
Check #1010 in Voyager for the proposed refactor |
Improvement ideas:
GET /stake/{candidate}/delegators/{delegator}
that returns an accessible state like{ shares: x, unbondingShares: y, redelegatingShares: z }
The text was updated successfully, but these errors were encountered: