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

a few miscellaneous items on ExternalLocking4Reputation and Auction4Reputation #542

Open
dkent600 opened this issue Sep 27, 2018 · 1 comment

Comments

@dkent600
Copy link
Contributor

  1. This in ExternalLocking4Reputation.initialize is redundant with what already exists in Locking4Reputation._initialize:
require(_lockingEndTime > _lockingStartTime,"_lockingEndTime should be greater than _lockingStartTime");
  1. consider indexing the following event arguments:
  • FixedReputationAllocation.BeneficiaryAddressAdded._beneficiary
  • Auction4Reputation.Bid._bidder
  1. FixedReputationAllocation.enabled will crash when numberOfBeneficiaries is zero:
beneficiaryReward = uint256(int216(reputationReward).div(int256(numberOfBeneficiaries)).fromReal());

Should we do a require with a message?

@dkent600
Copy link
Contributor Author

dkent600 commented Oct 9, 2018

@orenyodfat

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

1 participant