How can we create a pre sale contract using openZeppelin and it will be very helpful if any example is available on github ?
Hi @agri9394!
A pre-sale contract sounds like a good fit for OpenZeppelin. I think we should reformulate it more generically as a Crowdsale with different stages.
I agree with @frangio on this one. Setting up as multi-round crowdsale is probably the best option. The only downside is that you will need to know the allocation percentages for the presale round and the general round at time of deployment
@frangio any progress on this issue?
Is it reasonable to add CrowdsaleStage.sol? Crowdsale should include one or many CrowdsaleStages
No one has started development of this yet AFAIK.
Naive version of the CrowdsaleWithPresale contract: https://gist.github.com/troggy/8287b1c714f951e0da7fd27ebf842e5b
There was some discussion about a Crowdsale that had multiple stages with different rates in https://github.com/OpenZeppelin/openzeppelin-solidity/pull/1072, but it ended up abandoned due to a lack of interest. Closing this for similar reasons.
Most helpful comment
@frangio any progress on this issue?
Is it reasonable to add
CrowdsaleStage.sol?Crowdsaleshould include one or manyCrowdsaleStages