TW-RPC-003: TribeWarez Staking & Yield Program
| Field | Value |
|---|---|
| Proposal | TW-RPC-003 |
| Title | TribeWarez Staking — Delegated Yield & Reputation System for PoT-O Miners |
| Status | Draft / Reference Implementation |
| Type | Standards Track — Tokenomics / Staking |
| Created | 2026-03-01 |
| Authors | TribeWarez Project Team / O. "odelyzid" A. |
| Implementation | programs/tribewarez-staking/ (on-chain, Anchor) + staking UI in pot-o-validator extensions |
| Depends On | TW-RPC-1/2 (PoT-O), SPL Token 2022, Solana Runtime |
| License | MIT / Apache 2.0 |
| Testnet | testnet-solana.rpc.gateway.tribewarez.com |
| Validator | staking.rpc.gateway.tribewarez.com (planned) |
Abstract
TW-RPC-003 introduces a native staking mechanism for PTtC (Pumped TRIB€-test Coin) and NMTC (Numerologic Master Coin), allowing miners and holders to lock tokens for yield, boosted reputation in PoT-O mining, and governance weight. Rewards come from a portion of mining emissions (inflation) and future swap fees (from TW-RPC-003). The system uses Solana Program Derived Accounts (PDAs) for non-custodial staking pools, with flexible lock periods and reputation multipliers that favor long-term commitment and high-quality proof submissions.
Integration with PoT-O is seamless: staked miners receive priority in challenge assignment (via off-chain validator) and bonus rewards per valid proof.
1. Motivation
PoT-O mining is permissionless but benefits from long-term alignment. Staking provides:
- Passive yield for non-miners / holders.
- Active miner incentives: higher reputation → better challenge selection → more proofs → more rewards.
- Sybil resistance: stake-weighted reputation penalizes throwaway accounts.
- Treasury bootstrap: portion of staking rewards funds development vault (TW-RPC-004).
2. Specification
2.1 Tokens & Pools
- PTtC staking pool — primary mining reward token.
- NMTC staking pool — mystic / governance token (higher yield, lower inflation).
- Pools are PDAs derived from
["staking_pool", token_mint].
2.2 Staking Mechanics
pub struct StakeAccount {
pub owner: Pubkey,
pub amount: u64,
pub lock_until: i64, // Unix timestamp or 0 = flexible
pub reputation_score: u64, // boosted by proof quality & uptime
pub pending_yield: u64,
}Instructions:
stake— lock tokens, create StakeAccount PDA.unstake— withdraw after lock period (penalty if early).claim_yield— harvest accumulated rewards.restake— compound yield without withdrawal.
Lock tiers (configurable via PDA):
- Flexible: 0% bonus, instant unstake.
- 30 days: +10% yield multiplier.
- 90 days: +25% yield + reputation boost.
- 365 days: +50% yield + priority challenge queue.
2.3 Yield Sources
- Inflation emission — 15% of PoT-O mining rewards diverted to staking pool (configurable).
- Fee capture — future 0.5–2% from
tribewarez-swapvolume (TW-RPC-003). - Reputation boost — miners with >10 valid proofs in last 1000 slots get +5–20% extra yield on staked amount.
Yield is distributed pro-rata based on stake weight + reputation score.
2.4 Reputation System
Reputation score = base (from stake amount) + bonuses:
- +1 per valid proof (decays -0.1/day if inactive).
- +10% multiplier for consistent uptime (>90% challenge responses).
- Penalty: -50% for failed proofs or spam.
High reputation → off-chain validator gives preferential challenge assignment (shorter TTL, easier MML thresholds).
2.5 On-Chain Program (tribewarez-staking)
Program ID: StakeTW11111111111111111111111111111111 (placeholder)
Accounts:
StakingConfigPDA — global params (yield rate, lock tiers, admin).StakeAccountper user + token.YieldPoolPDA — holds undistributed rewards.
Error Codes:
LockNotExpiredInsufficientReputationEarlyUnstakePenalty
3. Integration with PoT-O
register_miner(TW-RPC-001) checks stake & reputation → assigns initial score.submit_proof→ on success: increment reputation + small yield drip to staked amount.- Future: governance votes weighted by stake + reputation.
4. Token Economics Update
- Total staking yield cap: soft limit at 20% annual inflation (adjustable).
- Unclaimed yield → rolls into development vault (TW-RPC-004).
- Post-hard-cap (after 21M PTtC): staking earns only swap fees + deflationary burn.
5. Security Considerations
- Non-custodial: tokens never leave user control except during lock.
- Slashing: only for provable malice (admin multisig, future on-chain oracle).
- Re-entrancy guards in Anchor CPI calls.
6. Implementation Status
- On-chain staking program: implemented (basic stake/unstake/claim).
- Reputation tracking: integrated in
MinerAccountPDA extension. - UI stub: planned for React dashboard at
staking.rpc.gateway.tribewarez.com. - Yield distribution crank: time-gated instruction (every 100 slots).
Living document — merges with TW-RPC-001 after testnet validation.