TW-RPC-004: TribeWarez Vault & Treasury Management
| Field | Value |
|---|---|
| Proposal | TW-RPC-004 |
| Title | TribeWarez Vault — Decentralized Treasury & Multisig Governance |
| Status | Draft / Reference Implementation |
| Type | Standards Track — Governance / Tokenomics |
| Created | 2026-03-01 |
| Authors | TribeWarez Project Team / O. "odelyzid" A. |
| Implementation | programs/tribewarez-vault/ (on-chain, Anchor) |
| Depends On | TW-RPC-001/002, SPL Governance (optional integration) |
| License | MIT / Apache 2.0 |
| Testnet | testnet-solana.rpc.gateway.tribewarez.com |
Abstract
TW-RPC-004 defines a secure, programmable treasury vault for TribeWarez ecosystem funds (development, grants, marketing, audits). It uses a 3-of-5 multisig (initially team-controlled) with on-chain proposals weighted by staked PTtC + reputation (from TW-RPC-003). Funds flow from:
- Optional community donations / mining tribute.
- Swap protocol fees.
- Unclaimed staking yield.
Vault disbursements require proposal + timelock + execution, ensuring transparency and preventing rug risks.
1. Motivation
- Align incentives: treasury grows with network usage and staking participation.
- Fund audits, tooling, marketing, and PoT-O extensions (quantum, Tor).
- Bootstrap development without centralized control.
2. Specification
2.1 Vault Structure
- MultisigSet PDA — 3-of-5 signers (upgradable via proposal).
- ProposalAccount per proposal — title, description, amount, destination, votes.
- TreasuryVault PDA — holds PTtC / NMTC / SOL.
2.2 Proposal & Execution Flow
If passes (>50% approval + quorum 10% total stake):
- Execution by any signer or crank.
- 48-hour timelock.
Proposal types:
- Fund grant (with milestone tracking stub).
- Burn tokens (deflation).
- Change multisig members.
- Upgrade program ID.
- Transfer (to address).
2.3 Funding Sources
- Direct deposits via
depositinstruction. - 1% fee from
tribewarez-swapvolume (configurable). - 10% of unclaimed staking yield auto-transferred every epoch.
2.4 On-Chain Program (tribewarez-vault)
Program ID: VaultTW11111111111111111111111111111111. See tribewarez-vault for deployed program ID and Vault for details.
Instructions:
create_proposalvote_proposalexecute_proposaldepositemergency_pause(multisig only)
Error Codes:
InsufficientQuorumTimelockActiveProposalNotPassed
3. Governance Weight
Vote power = staked PTtC amount × (1 + reputation_multiplier / 100)
4. Security Considerations
- Optional integration with SPL Governance for full DAO later.
- All actions logged on-chain.
- Multisig members public + rotatable.
- Timelock prevents instant rugs.
5. Implementation Status
- Dashboard: planned at
vault.rpc.gateway.tribewarez.com. - Auto-funding from staking/swap: stubbed (CPI pending).
- Multisig signer set: hardcoded (upgradable).
- Basic vault + proposal system: implemented.
Extension-ready for full on-chain DAO migration. See Implementation Mapping for code locations.
For IETF alignment notes (IPR, venue, outcome), see RFC Overview.