Skip to content

IncPriceCrowdsale consistently returns 0 outside of the crowdsale window.#1442

Merged
nventuro merged 1 commit into
OpenZeppelin:masterfrom
nventuro:inc-price-crowdsale-rate
Oct 18, 2018
Merged

IncPriceCrowdsale consistently returns 0 outside of the crowdsale window.#1442
nventuro merged 1 commit into
OpenZeppelin:masterfrom
nventuro:inc-price-crowdsale-rate

Conversation

@nventuro

Copy link
Copy Markdown
Contributor

It used to revert when called before, and return the final rate when called after, this is more consistent (and hopefully clearer).

@nventuro nventuro added this to the v2.0 milestone Oct 18, 2018
@nventuro nventuro requested a review from come-maiz October 18, 2018 18:29

@come-maiz come-maiz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think it's good. We should agree on rules of when to return 0 and when to revert, but consistency inside the same contract is a good step for sure.

@nventuro nventuro merged commit 9155bfe into OpenZeppelin:master Oct 18, 2018
@nventuro nventuro deleted the inc-price-crowdsale-rate branch October 18, 2018 19:36
come-maiz pushed a commit that referenced this pull request Oct 21, 2018
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 this pull request may close these issues.

2 participants