Skip to content

TW-RPC-004: TribeWarez Vault & Treasury Management

FieldValue
ProposalTW-RPC-004
TitleTribeWarez Vault — Decentralized Treasury & Multisig Governance
StatusDraft / Reference Implementation
TypeStandards Track — Governance / Tokenomics
Created2026-03-01
AuthorsTribeWarez Project Team / O. "odelyzid" A.
Implementationprograms/tribewarez-vault/ (on-chain, Anchor)
Depends OnTW-RPC-001/002, SPL Governance (optional integration)
LicenseMIT / Apache 2.0
Testnettestnet-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 deposit instruction.
  • 1% fee from tribewarez-swap volume (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_proposal
  • vote_proposal
  • execute_proposal
  • deposit
  • emergency_pause (multisig only)

Error Codes:

  • InsufficientQuorum
  • TimelockActive
  • ProposalNotPassed

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.

TribeWarez Blockchain Ecosystem