-
Notifications
You must be signed in to change notification settings - Fork 34
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
Remove stake lock #84
Conversation
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.
Seems ok to me, I just recommend to keep "unlocked" methods/etc with the unlocked prefix/suffix, since we plan to introduce a different locking later.
@@ -110,28 +110,8 @@ contract NodeDriver is Initializable { | |||
); | |||
} |
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.
We may simplify setGenesisValidator too:
function setGenesisValidator(
address _auth,
uint256 validatorID,
bytes calldata pubkey
)
contracts/sfc/SFCBase.sol
Outdated
} | ||
return reward; | ||
function _scaleReward(uint256 fullReward) internal view returns (uint256) { | ||
return (fullReward * c.rewardRatio()) / Decimal.unit(); |
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 seems to be better inline into its only usage
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.
The scaling goes away completely.
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.
Please remove reward ratio completely. The rest looks good. Tests should be updated as well. Thanks.
No description provided.