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/2, 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-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

  1. Anyone with >0.1% network stake can create proposal.
  2. Voting window: 7 days (weighted by stake + reputation).
  3. 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-swap volume (configurable).
  • Direct deposits via deposit instruction.

2.4 On-Chain Program (tribewarez-vault)

Program ID: VaultTW11111111111111111111111111111111

Instructions:

  • create_proposal
  • vote_proposal
  • execute_proposal
  • deposit
  • emergency_pause (multisig only)

Error Codes:

  • ProposalNotPassed
  • TimelockActive
  • InsufficientQuorum

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.

TribeWarez Blockchain Ecosystem