DAO Treasury
Last updated
Purpose: Protocol fee accumulation and treasury management. Holds protocol reserves and fees.
withdraw — Withdraw tokens from treasury
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)token
<ft-trait>
Token contract implementing fungible token trait
amount
uint
Amount to withdraw
recipient
principal
Address to receive withdrawn tokens
(response bool uint) — Success or error
DAO executor only (requires approved proposal)
Handles both regular tokens and STX via wstx wrapper contract.
Last updated