Skip to Content
Stacks Market

DAO Treasury

Purpose: Protocol fee accumulation and treasury management. Holds protocol reserves and fees.

Core functions

  • withdraw — Withdraw tokens from treasury

withdraw

Withdraw tokens from treasury to specified recipient. Requires DAO executor authorization via approved proposal.

// Returns: (response bool uint) withdraw(token: <ft-trait>, amount: uint, recipient: principal) -> (response bool uint)

Parameters

ParameterTypeDescription
token<ft-trait>Token contract implementing fungible token trait
amountuintAmount to withdraw
recipientprincipalAddress to receive withdrawn tokens

Returns

  • (response bool uint) — Success or error

Authorization

  • DAO executor only (requires approved proposal)

Handles both regular tokens and STX via wstx wrapper contract.

Last updated on