Releases: WGlynn/VibeSwap
Releases · WGlynn/VibeSwap
v0.4.0 — Game Theory & Reputation Engine
Milestone: Game Theory & Reputation Engine
VibeSwap's incentive layer is now complete — from Shapley value distributions to pairwise trust comparisons, every reward mechanism is backed by formal game theory and cryptographic fairness.
What's in this release
ReputationOracle — Pairwise trust scoring with own commit-reveal cycle
- 5-minute commit / 2-minute reveal windows for trust comparisons
- Cryptographic commitment prevents strategic voting
- Trust scores (0–10,000 BPS) with mean-reverting decay toward 5,000
- 5-tier gating system (Untrusted → Trusted → Verified → Established → Elite)
- 50% slashing for non-revealers, funds routed to DAO treasury
- SoulboundIdentity integration for voter eligibility (Sybil resistance)
PriorityRegistry — First-to-publish pioneer incentives
- Immutable on-chain record of chronological firsts (pool creation, liquidity bootstrap, strategy authoring, infrastructure deployment)
- Pioneer bonus integrated into ShapleyDistributor via measured impact (not time-biased rates)
- Preserves pairwise proportionality and time neutrality axioms
Time-Neutral Tokenomics — Two-track Shapley distribution
- Same work = same reward regardless of era
- Early track (pioneer bonus via impact) + Steady track (ongoing contribution)
- Formal proofs: 11 time-neutrality tests covering all axioms
ShapleyDistributor — Cooperative game theory reward engine
- Weighted Shapley values with quality multipliers
- Pioneer bonus integration (up to 50% boost for foundational contributors)
- 42 unit tests + 8 fuzz tests
By the numbers
| Metric | Count |
|---|---|
| Solidity contracts | 40+ |
| Test suite | 476 tests, 0 failures |
| Fuzz tests | 15+ (256 runs each) |
| Security tests | Reentrancy, flash loan, circuit breaker |
| Game theory proofs | Time neutrality, pairwise fairness, pioneer compatibility |
Architecture
ReputationOracle ←→ SoulboundIdentity (voter eligibility)
↓ ↓
Trust Scores Identity NFTs
↓ ↓
ShapleyDistributor ←→ PriorityRegistry
↓ ↓
Fair Rewards Pioneer Bonus
↓
DAOTreasury (slashed funds)
Core contracts in this milestone
contracts/oracle/ReputationOracle.sol— Pairwise trust oraclecontracts/oracle/IReputationOracle.sol— Cross-contract interfacecontracts/incentives/PriorityRegistry.sol— First-to-publish registrycontracts/incentives/ShapleyDistributor.sol— Game theory rewardscontracts/identity/SoulboundIdentity.sol— Sybil-resistant identity
Philosophy
"Cooperative Capitalism" — Mutualized risk through insurance pools and treasury stabilization, combined with free market competition through priority auctions and arbitrage. Every mechanism is designed so that rational self-interest aligns with collective benefit.
Full test suite: forge test — 476/476 passing