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

Optimize calculation for bridge reward #60

Closed
nxqbao opened this issue Nov 7, 2022 · 0 comments · Fixed by #77
Closed

Optimize calculation for bridge reward #60

nxqbao opened this issue Nov 7, 2022 · 0 comments · Fixed by #77

Comments

@nxqbao
Copy link
Contributor

nxqbao commented Nov 7, 2022

    I think this will be better, the rounding error is smaller too

_bridgeOperatingReward[_validator] = _totalBridgeReward / totalBridgeOperators();

Same with the below formula

Originally posted by @minh-bq in #22 (comment)

nxqbao added a commit that referenced this issue Nov 11, 2022
@nxqbao nxqbao linked a pull request Nov 11, 2022 that will close this issue
nxqbao added a commit that referenced this issue Nov 13, 2022
@nxqbao nxqbao closed this as completed in bc4ebf7 Nov 13, 2022
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 a pull request may close this issue.

1 participant