Setting DAI as the receivable token in a crowdsale contract

Hi all -

I’m trying to build a crowdsale contract that will hopefully function similar to kickstarter / indiegogo / etc, but more like a micro-loan that can be paid back by the recipient. The goal is to use it for fundraising for creative projects like publishing a book or recording an album.

My initial thought is to make a crowdsale contract that can be paid in DAI, then the contributor can be rewarded with an erc777, which they could trade back at the end of the project for the return of their investment (dai).

Is this way of thinking viable? Can I set the rate for a crowdsale in DAI, or would I have to integrate Airswap or something other thing to quickly change from eth to dai after its contributed?

1 Like

Hi @Yorkemartin,

Welcome to the community :wave:.

I suggest you have appropriate advice on any regulatory requirements for such a scheme.

The OpenZeppelin Contracts Crowdsales accept Ether and issue ERC20 tokens. Though you may be able to adapt the crowdsale to use a stable token as payment instead of Ether. Issuing an ERC777 token should be fine as it can be ERC20 compatible. If adapting Crowdsale isn’t suitable, then you would likely be creating something similar.

Any such solution should be appropriately tested and audited (OpenZeppelin performs security audits)