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

Reward calculation clean up for zero gas. #495

Closed
deepesh-kn opened this issue Nov 29, 2018 · 0 comments
Closed

Reward calculation clean up for zero gas. #495

deepesh-kn opened this issue Nov 29, 2018 · 0 comments

Comments

@deepesh-kn
Copy link
Contributor

deepesh-kn commented Nov 29, 2018

  • (The facilitator gets the reward on completion of the progressMint and progressUnstake.)
  • (The reward depends upon the gasPrice and gasLimit set by the staker/redeemer.)
  • (The reward is calculated as MIN((gasConsumed + additionGas)gasPrice, gasLimitgasPrice))
  • (The reward should be 0 in case of 0 gas price.)
  • Dont call mint for facilitator in case of 0 reward.

All the points in () should be already there in the code. Just check if its as per the description here.

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

No branches or pull requests

3 participants