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/2, 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-002). Funds flow from:
- Unclaimed staking yield.
- Swap protocol fees (TW-RPC-003).
- Optional community donations / mining tribute.
Vault disbursements require proposal + timelock + execution, ensuring transparency and preventing rug risks.
1. Motivation
- Bootstrap development without centralized control.
- Fund audits, tooling, marketing, and PoT-O extensions (quantum, Tor).
- Align incentives: treasury grows with network usage and staking participation.
2. Specification
2.1 Vault Structure
- TreasuryVault PDA — holds PTtC / NMTC / SOL.
- ProposalAccount per proposal — title, description, amount, destination, votes.
- MultisigSet PDA — 3-of-5 signers (upgradable via proposal).
2.2 Proposal & Execution Flow
- Anyone with >0.1% network stake can create proposal.
- Voting window: 7 days (weighted by stake + reputation).
- If passes (>50% approval + quorum 10% total stake):
- 48-hour timelock.
- Execution by any signer or crank.
Proposal types:
- Transfer (to address).
- Upgrade program ID.
- Change multisig members.
- Burn tokens (deflation).
- Fund grant (with milestone tracking stub).
2.3 Funding Sources
- 10% of unclaimed staking yield auto-transferred every epoch.
- 1% fee from
tribewarez-swapvolume (configurable). - Direct deposits via
depositinstruction.
2.4 On-Chain Program (tribewarez-vault)
Program ID: VaultTW11111111111111111111111111111111
Instructions:
create_proposalvote_proposalexecute_proposaldepositemergency_pause(multisig only)
Error Codes:
ProposalNotPassedTimelockActiveInsufficientQuorum
3. Governance Weight
Vote power = staked PTtC amount × (1 + reputation_multiplier / 100)
4. Security Considerations
- Timelock prevents instant rugs.
- Multisig members public + rotatable.
- All actions logged on-chain.
- Optional integration with SPL Governance for full DAO later.
5. Implementation Status
- Basic vault + proposal system: implemented.
- Multisig signer set: hardcoded (upgradable).
- Auto-funding from staking/swap: stubbed (CPI pending).
- Dashboard: planned at
vault.rpc.gateway.tribewarez.com.
Extension-ready for full on-chain DAO migration.