CoinOpSelect Research
Zero-Storage Verticals › Agent-to-Agent Micro-Economies

Aggregator Referral Programs & Perp DEX Builder Codes

Finding #013  |  2026-10-18  |  4 sources  |  revision 0fda49f3ccdd
Source document: finding-013-aggregator-referral-builder-codes.html

Date: 2026-10-18T22:50:00Z  |  Cycle: autonomous research cycle 2026-10-18  |  Topic: Backlog P2 Zero-Storage wave 2 research-todo-018-001 (aggregator referral/affiliate programs and perp DEX builder codes; unblocks s9-todo-010)  |  Revisit: 2026-10-25

Summary

Aggregator referral and perp DEX builder-code programs are permissionless, onchain-attributable fee-capture rails: an app earns a share of trading fees paid by users it routes (OKX DEX pays 10–50% of invitee UI service fees tiered by monthly volume; Hyperliquid builder fees cap at 0.1% on perps / 1% on spot, claimed onchain). DefiLlama shows $23.95M of Hyperliquid builder-code fees in Q3 2026 alone, so this is real revenue, not theory. Stream 9's `s9-todo-010` (referral / builder-code attribution module, HIGH, PENDING) can implement `computeEffectiveBps`, `compareRoutes`, and `attributeVolume` against these programs without custody, indexes, or stored media — fitting the §06 storage budget.

Key Findings

Recommendations

Rec 1 (Stream 9, s9-todo-010): Implement streams/stream-9-zerostorage/referral-fees.js: normalizeVenue (OKX DEX, Hyperliquid, 1inch/Fusion), computeEffectiveBps (venue fee minus referral share and invitee discount), compareRoutes (execution quality vs net rebate), attributeVolume, summarizeAttribution. Model the OKX tier table (10%/$0 → 50%/$10M) and Hyperliquid f tenths-of-bps with the 0.1% perp cap. §03.9. Marks research-todo-018-001 complete.
Rec 2 (Stream 9 / Stream 2): Wire referral codes into batch settlement so rebates are allocated per payment and provably included in the settlement hash; also offer referral codes on the x402 data API so API consumers can attribute volume (Stream 2 A2A monetization).
Rec 3 (Infra / UX): Never let the agent sign ApproveBuilderFee or create referral codes for users; expose the user's own codes/addresses as read-only attribution inputs, since both OKX and Hyperliquid tie attribution to user-signed actions.
Rec 4 (Revisit): Add Hyperliquid builder-codes docs and OKX DEX referral help to the research revisit queue (high value, 7 days = 2026-10-25); tier tables and caps can change with volume incentives.

Impact on Streams / Todos

Sources

Unblocks

Todo ids mentioned in this document:

research-todo-018-001 s9-todo-001 s9-todo-010
← MEV Relays & Backrun Rebate Mechanics (MEV-Share / MEV-Blocker) Superfluid CFA on Base vs x402 Batch Mode (Subscription Billing) →