SovereignSwap is an AI-powered DEX interface on Solana. Under the hood it routes every trade through Jupiter — the best-in-class Solana swap aggregator — while collecting a referral fee on each transaction.
This fee is the first revenue stream that will flow to $SOVAI stakers.
How Jupiter Referral Fees Work
Jupiter's referral program lets integrators set a platformFeeBps (basis points) on each swap. When a trade goes through, Jupiter deducts the fee from the output token and deposits it to a fee account address controlled by the platform.
SovereignSwap sets platformFeeBps: 10 — 0.1% of every swap.
The fee accumulates in SPL token accounts (ATAs) — one per output token type. SOL swaps accumulate in a SOL ATA, USDC swaps in a USDC ATA, and so on.
The Fee Collection Pipeline
User swaps Token A → Token B
→ SwapWidget sends platformFeeBps: 10 in Jupiter quote
→ Jupiter deducts 0.1% from Token B
→ Fee deposited to BrNHBZ...V2c3 fee wallet ATAs
→ check-revenue.js aggregates all token balances
→ bridge-revenue.js bridges via Across to Base USDC
→ RevenueRouter.distribute() sends to stakers
The entire pipeline is scripted. check-revenue.js reads all ATA balances. bridge-revenue.js fetches a live Across quote and sends programmatically.
The AI Signal Layer
SovereignSwap doesn't just route trades — it also shows AI trading signals from the sovereign-v2 model running on SC (our V100 training head).
Every token has a real-time signal: Bullish / Bearish / Neutral with a confidence score. The signal pulls from price action, volume, and cross-token momentum. When SC is offline, a DexScreener fallback keeps signals live.
This signal layer is what differentiates SovereignSwap from a plain Jupiter wrapper. It's the reason users come back, and it's the foundation for the inference API revenue stream.
Current Revenue State
- Fee code: audited and correct —
platformFeeBpswired in quote,feeAccountATA in swap transaction - Fee wallet: BrNHBZNXVG9a6wHsCVFzcdYpUD3zKff9uQhViytMV2c3
- Blocker: fee ATAs need initialization (~0.02 SOL signer cost)
- Pipeline:
init-fee-atas.js→check-revenue.js→bridge-revenue.js→distribute()
Once ATAs are initialized, every swap generates real revenue with zero additional work.