Blog · App ideas with G$
Build a Crowdfunding dApp With a Goal and a Refund Rule
A crowdfunding dApp holds supporters' money in a contract, pays the organiser if the goal is reached by the deadline, and returns it if not.
· 2 min read
Rules
- The goal amount and the deadline.
- The token.
- Who receives the funds on success.
- How refunds work on failure: automatic, or each supporter claims theirs.
- Whether the goal can be changed. Usually it shouldn't.
Why a contract
Supporters trust a rule they can read more than a promise. The contract can't spend the money for another purpose, and the refund rule runs whether or not the organiser is around.
Steps
- Write the rules as a paragraph and add it to GoodBuild.
- Test the success path, the failure path and a payment after the deadline on Celo Sepolia.
- Show a progress bar and a countdown on the page.
- Have the contract reviewed before real money is raised.
Be careful
Fundraising can be regulated in your area. This post is not legal advice. Say clearly what the money is for and who you are.
Questions people ask
What happens if the goal isn't met?
In the design described here, supporters get their money back. The refund rule is written into the contract, so it doesn't depend on the organiser.
Can the organiser withdraw early?
Only if you write that rule. Most designs forbid it, because the point is that supporters' money stays put until the goal is met.
Do supporters need to trust me?
Less than with a plain promise, because they can read the rules. They still need to trust the cause, so say who you are.