Accept USDT in crowdsale

The Crowdsale constructor accepts only the token in its parameters, which will be purchased after transferring eth.
Is there any snippet or documentation, how to safely accept USDT tokens instead of ETH ?

I would be grateful for any tips.

1 Like

Hi @herman-sadik,

The OpenZeppelin Contracts Crowdsales only accept Ether. You could look at using these as a guide to create a crowdsale that accepts an ERC20 token instead.

If you did this, you would need to appropriately test and audit this crowdsale as part of your solution.

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

Hi @herman-sadik,

Do you need any more information?