A tax-driven DeFi protocol on Solana where every swap fuels epochs, carnage events, and real SOL yield for stakers.
Dr. Fraudsworth's Finance Factory is a live, mainnet-deployed Solana protocol built around a novel economic loop: every token swap incurs a configurable tax that flows into the Carnage Fund. Epochs advance via Switchboard VRF randomness, and when Carnage strikes, accumulated taxes are redistributed back to token holders. PROFIT token stakers earn real SOL yield from trading activity -- not inflationary rewards.
- Website: fraudsworth.fun
- Documentation: docs.fraudsworth.fun
- Explorer: See program addresses below
| Program | Address | Verified |
|---|---|---|
| AMM | 5JsSAL3kJDUWD4ZveYXYZmgm1eVqueesTZVdAvtZg8cR |
OtterSec |
| Transfer Hook | CiQPQrmQh6BPhb9k7dFnsEs5gKPgdrvNKFc5xie5xVGd |
OtterSec |
| Tax Program | 43fZGRtmEsP7ExnJE1dbTbNjaP1ncvVmMPusSeksWGEj |
OtterSec |
| Epoch Program | 4Heqc8QEjJCspHR8y96wgZBnBfbe3Qb8N6JBZMQt9iw2 |
OtterSec |
| Staking | 12b3t1cNiAUoYLiWFEnFa4w6qYxVAiqCWU7KZuzLPYtH |
OtterSec |
| Conversion Vault | 5uawA6ehYTu69Ggvm3LSK84qFawPKxbWgfngwj15NRJ |
OtterSec |
| Token | Mint Address |
|---|---|
| CRIME | cRiMEhAxoDhcEuh3Yf7Z2QkXUXUMKbakhcVqmDsqPXc |
| FRAUD | FraUdp6YhtVJYPxC2w255yAbpTsPqd8Bfhy9rC56jau5 |
| PROFIT | pRoFiTj36haRD5sG2Neqib9KoSrtdYMGrM7SEkZetfR |
| Address | |
|---|---|
| Treasury | 3ihhwLnEJ2duwPSLYxhLbFrdhhxXLcvcrV9rAHqMgzCv |
Dr. Fraudsworth implements a closed economic loop where trading friction generates real yield:
-
Tax on Every Swap -- Every token swap through the AMM incurs a configurable tax (1-4% or 11-14% depending on the current epoch). Tax proceeds are split: 71% to PROFIT stakers, 24% to the Carnage Fund, and 5% to the treasury.
-
VRF-Driven Epochs -- Epochs advance via Switchboard VRF (verifiable random function), ensuring no admin can manipulate outcomes. Each epoch sets new tax rates and determines whether Carnage triggers.
-
Carnage Events -- When Carnage fires, the accumulated Carnage Fund executes autonomous buy-and-burn operations, redistributing value back to token holders by permanently removing supply.
-
PROFIT Staking -- PROFIT token holders stake to earn real SOL rewards from the 71% staker allocation of every swap. This is real rewards from real trading activity, not inflationary token emissions.
-
Dual-Token Economy -- CRIME and FRAUD are the two tradeable tokens, each with their own SOL pool. PROFIT is the yield-bearing governance token earned through the Conversion Vault.
The protocol consists of 6 active programs working together:
-
AMM (
amm) -- Constant-product automated market maker with 4 trading pools (CRIME/SOL, FRAUD/SOL, CRIME/PROFIT, FRAUD/PROFIT). Supports Token-2022 transfer hooks for automatic tax collection. -
Transfer Hook (
transfer-hook) -- Token-2022 transfer hook that intercepts every token transfer to enforce tax collection. Implements a whitelist system so protocol-internal transfers (staking, carnage, vault) bypass taxes. -
Tax Program (
tax-program) -- Tax distribution engine that splits collected taxes across the stakers (71%), the Carnage Fund (24%), and treasury (5%). Manages WSOL wrapping/unwrapping for SOL-denominated distributions. -
Epoch Program (
epoch-program) -- VRF-driven epoch state machine. Manages the commit-reveal-consume cycle for Switchboard randomness. Controls tax rate rotation and Carnage event triggering. -
Staking (
staking) -- PROFIT token staking with SOL rewards distribution. Tracks per-user stake positions and distributes accumulated staker rewards proportionally. -
Conversion Vault (
conversion-vault) -- Cross-token conversion mechanism allowing users to convert between CRIME/FRAUD and PROFIT at protocol-defined rates.
A Bonding Curve program was used for the initial token launch (CRIME and FRAUD curves raised ~1,000 SOL total) but has been closed post-graduation, with rent reclaimed.
This protocol has undergone extensive security review:
-
3 AI-assisted internal audits covering on-chain programs and off-chain infrastructure:
- SOS Audit (
.audit/) -- Comprehensive Anchor program security review (132 findings analyzed) - Bulwark Audit (
.bulwark/) -- Full-stack security assessment including frontend, API, crank bot, and infrastructure (132 findings analyzed) - BOK Formal Verification (
.bok/) -- Kani-based formal verification of critical invariants (arithmetic bounds, state transitions)
- SOS Audit (
-
OtterSec verified build badges for all 6 deployed programs (independently reproducible builds)
-
Switchboard VRF for verifiable on-chain randomness (no admin-controlled outcomes)
-
Squads v4 multisig governance -- All program authorities held by a 2-of-3 timelocked multisig
-
security.txtembedded in all program binaries per Solana security.txt standard
See SECURITY_AUDIT_SUMMARY.md for the complete audit findings and project response to each.
This project was built over 104 phases with Claude (Anthropic's AI) as the primary developer and a solo human as the product owner. The complete build history -- every planning document, research phase, decision log, and phase summary -- is preserved in .planning/.
By the numbers:
- 104 development phases across 13 milestones
- 334 individual plans executed
- 3 comprehensive security audits
- From first line of code to mainnet deployment
This represents one of the most thoroughly documented AI-assisted software development projects in the Solana ecosystem. The .planning/ directory is included deliberately as a transparency feature -- you can trace every architectural decision, bug fix, and tradeoff back to the planning document that motivated it.
- Rust + Cargo (via rustup)
- Solana CLI v2.x (install)
- Anchor CLI v0.32.x (via AVM)
- Node.js 18+ and npm
- Docker (for verified/deterministic builds)
# Standard build
anchor build
# Devnet build (enables devnet feature flags)
anchor build
anchor build -p epoch_program -- --features devnet# Requires Docker and solana-verify CLI
solana-verify build --library-name amm
solana-verify build --library-name transfer_hook
solana-verify build --library-name tax_program
solana-verify build --library-name epoch_program
solana-verify build --library-name staking
solana-verify build --library-name conversion_vault# Anchor integration tests (requires local validator)
anchor test
# Individual test suites
anchor test -- --test staking
anchor test -- --test token-flow
anchor test -- --test securitycd app && npm install && npm run devcd docs-site && npm install && npm run devprograms/ -- 7 Anchor programs (6 active + bonding curve)
amm/ -- Constant-product AMM with Token-2022 hook support
transfer-hook/ -- Token-2022 transfer hook for tax collection
tax-program/ -- Tax distribution engine
epoch-program/ -- VRF-driven epoch advancement and Carnage
staking/ -- PROFIT staking with SOL yield
conversion-vault/ -- Cross-token conversion
bonding_curve/ -- Token launch curves (closed post-graduation)
app/ -- Next.js 16 frontend (React, TailwindCSS, Turbopack)
docs-site/ -- Nextra documentation website
scripts/ -- Deploy, crank, graduation, and test infrastructure
deploy/ -- Full deployment pipeline (build, deploy, initialize)
crank/ -- Epoch advancement crank bot
graduation/ -- Bonding curve -> AMM pool migration
test/ -- Test helpers and validation scripts
tests/ -- Anchor integration test suites
shared/ -- TypeScript shared constants and program IDs
deployments/ -- On-chain addresses (mainnet.json, devnet.json)
Docs/ -- Protocol specifications and operational docs
.audit/ -- SOS security audit (AI-assisted)
.bulwark/ -- Bulwark security audit (AI-assisted)
.bok/ -- BOK formal verification (Kani harnesses)
.planning/ -- 104 phases of build documentation
All program upgrade authorities and admin PDA authorities are held by a 2-of-3 Squads v4 multisig with timelocked upgrades. No single key can modify the protocol.
For the full governance structure, see Docs/mainnet-governance.md.
MIT -- see LICENSE
This software is provided as-is for transparency and verification purposes. DeFi protocols carry inherent financial risks including but not limited to smart contract bugs, oracle failures, and market volatility. This repository is read-only; no external contributions are accepted. Do your own research. Not financial advice.