Skip to content
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

(Feature) Add functions to calculate earning for next round #40

Merged
merged 10 commits into from
Jun 21, 2019

Conversation

Agupane
Copy link
Contributor

@Agupane Agupane commented Jun 21, 2019

Add some functions to calculate the LPT earning for next round, using GRAPQHL.

Agupane and others added 10 commits June 19, 2019 15:53
Also adds functions: getMintedTokensForNextRound, calculateParticipationInTotalBondedRatio, calculateDelegateNextProtocolReward, calculateDelegateNextReward
Replaces BN usage to BIG
Fixs tokenAmountInUnits function
Adds constants.js file
…atorNextReturn,

Adds getDelegateRewardToDelegators, getDelegatorNextReturn
# Conflicts:
#	server/helpers/graphql/queries/delegate.js
…d the utils function on a delegates file

Adds test file for delegate utils
@mariano-aguero mariano-aguero self-requested a review June 21, 2019 13:48
@mariano-aguero mariano-aguero marked this pull request as ready for review June 21, 2019 13:56
@mariano-aguero mariano-aguero changed the title (Feature) LPT earning fix (Feature) Add functions to calculate earning for next round Jun 21, 2019
@mariano-aguero mariano-aguero merged commit 933216f into development Jun 21, 2019
@mariano-aguero mariano-aguero deleted the feature/lptEarningFix branch June 21, 2019 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants