Accepting other ERC20 tokens for crowdsale

Hi everyone, I’m wondering if it’s possible to receive other tokens, like wBTC, or usdt on a crowdsale smart contract, instead of the usual ETH.

1 Like

Yeah, you can, just like you deposit DAI to get cDAI.

1 Like

Hi @ter,

Welcome to the community :wave:

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. https://docs.openzeppelin.com/contracts/2.x/crowdsales

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).

1 Like