LarzDAO — Stake-Weighted Governance, Built in Larzscript
Contribute real money to a treasury, and your stake becomes your voting power. Every proposal needs two real things to pass: enough people showing up, and yes genuinely outweighing no.
What LarzDAO actually does
Members contribute real money into a shared treasury; their contribution becomes their voting power, permanently. Anyone can propose a payout, members vote yes or no with their full weight, and tally checks two conditions computed fresh from every vote on record: quorum (enough total voting power cast) and majority (yes strictly outweighing no among decisive votes). Both have to hold, or the proposal is rejected and the money stays in the treasury.
Every line below is the real output of sh examples/demo.sh against the actual interpreter — re-run fresh for this page, not copied from documentation. Three members contribute wildly unequal stakes to the same DAO.
larzscript bin/larzdao.lz create-dao "Marketing Guild" 0.4 0.5 larzscript bin/larzdao.lz contribute 533998f9 alice 100 larzscript bin/larzdao.lz contribute 533998f9 bob 50 larzscript bin/larzdao.lz contribute 533998f9 carol 30
created dao 533998f9 "Marketing Guild" quorum 40% majority 50% alice contributed $100 - voting power now 100 bob contributed $50 - voting power now 50 carol contributed $30 - voting power now 30
180 total voting power across the three of them. The exact same tally command now runs against three different real proposals.
larzscript bin/larzdao.lz tally 533998f9 78810247 larzscript bin/larzdao.lz tally 533998f9 219ba538 larzscript bin/larzdao.lz tally 533998f9 29069f5f
PASSED - paid out REJECTED: quorum not reached (line 171) REJECTED: majority not reached (line 172)
Proposal 1: alice and bob vote yes (150 power), carol votes no (30) — passes easily. Proposal 2: only carol votes — her 30 power is well under the 72 needed for 40% quorum of 180, rejected before majority is even checked. Proposal 3: everyone votes, quorum is met, but alice's 100-power "no" beats bob and carol's combined 80-power "yes" — rejected on majority instead. Three genuinely different reasons, same tally code, same require.
Why it matters
Every other flagship project's require gates a single transaction against a known balance. LarzDAO's gates an aggregate CONSENSUS, recomputed from every vote cast — the fourth distinct shape this keyword has taken across the series, after LarzBank's overdraft check, LarzCrowd's escrow closure, and LarzLend's ongoing time-driven threshold. Same keyword from the course's error-handling lesson, four very different jobs.