How to create a Crowdsale with Solidity 0.6?

Hello guys ,
I want to make a crowdsale smart Contract.
As i could see crowdsale contract has been removed from openzepplin v3.0 .
. How to implement it in v3.0 oz Contracts?
I have made the erc20 contract using openzepplin.


yes me too , i was shocked

1 Like

Hi @arkhaminferno,

Welcome to the community :wave:

The crowdsale contracts were not included in OpenZeppelin Contracts 3.x

due to both a decline in their usage and the complexity associated with migrating them to Solidity v0.6.

OpenZeppelin Contracts 2.x (Solidity 0.5) includes Crowdsale contracts:

You can see these contracts in the GitHub repository using a 2.x release tag, the latest being v2.5.1:

If you have already created a token in OpenZeppelin Contracts 3.x, you could create a separate project for your Crowdsale and extend from the Crowdsales in OpenZeppelin Contracts 2.x.

When creating an ERC20 token I suggest looking at Points to consider when creating a fungible token (ERC20, ERC777)