From 60c362453e49006c11bc0dcc4be9d8f29baca0cf Mon Sep 17 00:00:00 2001 From: secret-mars Date: Mon, 23 Feb 2026 01:43:41 +0000 Subject: [PATCH] fix(init-proposal): set treasury address so entrance tax flows to DAO treasury The init-proposal bootstrap enables all DAO extensions but never calls dao-token.set-treasury() to point the treasury-address at dao-treasury. Since treasury-address defaults to CONTRACT_DEPLOYER, all entrance tax (10% of every sBTC deposit) goes to the deployer instead of the shared DAO treasury. This breaks the DAO's economic model. Add a set-treasury call after extensions are enabled so that from the moment the DAO is constructed, deposit tax routes to dao-treasury. Refs: #2 Co-Authored-By: Claude Opus 4.6 --- contracts/proposals/init-proposal.clar | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/proposals/init-proposal.clar b/contracts/proposals/init-proposal.clar index 6974d46..7100c8e 100644 --- a/contracts/proposals/init-proposal.clar +++ b/contracts/proposals/init-proposal.clar @@ -27,6 +27,9 @@ (try! (contract-call? .base-dao set-extension .core-proposals true)) (try! (contract-call? .base-dao set-extension .agent-registry true)) + ;; Set treasury address on dao-token so entrance tax flows to DAO treasury + (try! (contract-call? .dao-token set-treasury .dao-treasury)) + ;; Set initial charter (try! (contract-call? .dao-charter set-dao-charter INITIAL_CHARTER))