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

Simplify IndividuallyCappedCrowdsale interface #1296

Merged
merged 3 commits into from
Sep 7, 2018

Conversation

frangio
Copy link
Contributor

@frangio frangio commented Sep 7, 2018

This PR removes the concept of "user" from this crowdsale flavor, which is not present elsewhere in the crowdsales subsystem, and also removes the function setGroupCap which takes an array, as this is not customary across the OpenZeppelin API.

@frangio frangio added kind:improvement contracts Smart contract code. breaking change Changes that break backwards compatibility of the public API. labels Sep 7, 2018
@frangio frangio added this to the v2.0 milestone Sep 7, 2018
caps_[_beneficiaries[i]] = _cap;
}
}

/**
* @dev Returns the cap of a specific user.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and other comments reference 'users': we should probably rename those to 'accounts' or 'beneficiaries'

@frangio frangio merged commit bf95602 into OpenZeppelin:master Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Changes that break backwards compatibility of the public API. contracts Smart contract code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants