Menu

1 / 5

crowdfund: a SOL crowdfunding program in Anchor with a goal, a deadline and refunds

DEV Community: opensource·Abdeldjalil Chougui·1 day ago
#6SzFWZOB
#devtoopensource#devto#dev#deadline#campaign
Long article (1223 words) — no AI summary yet.
Reading 0:00
15s threshold

Crowdfunding has one simple promise: if the campaign reaches its goal by the deadline, the creator gets the money; if it does not, everyone gets their money back. Simple to say, but somebody has to hold the money in the meantime, and both sides have to trust that somebody.

A program can be that somebody. The rules are few and fully mechanical, which makes all-or-nothing crowdfunding a good exercise: a goal, a deadline, two outcomes, and a list of things nobody should be able to do. crowdfund is a SOL crowdfunding program in Anchor 1.2 built around exactly that.

The warning from the README first: not audited, devnet / localnet only. This is a learning project.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.