Flash Revenue Router
Flash Revenue Router distributes received fees across multiple destinations in one transaction.
On this page
- On the roadmap
- V4 Extensions
- Routes
- Received fees only
- Who sets it
- The project, once for its split
- Destinations
- Each with its share, and an optional swap
- Transactions
- 1
Projects can configure a recurring split between destinations like treasury and team wallets, instead of transferring each part manually.
- Splitting protocol income: Protocol collects trading fees in USDC and sends them each week to its treasury, the contributors wallets and grants programs, in fixed parts.
- Revenue share: A wallet app shares revenue with an integration partner. The partner receives its part automatically, in the same transaction as the app’s own payment.
- Building a reserve in another token: Portion of each route is converted to WETH and sent directly to a reserve wallet in the same transaction.
From received fees to every destination
Each router is assigned to a single project. The project sets its revenue split once, and every route applies it automatically.
- The project saves its split: The project specifies each address and percentage. The percentages must total 100%. It also lists the addresses permitted to execute routes. Setting or changing these details requires a transaction from the project’s wallet.
- Receive fees: The project sends collected fees to the router’s address.
- An allowed address sends a route for one token, with minimum output for each required swap, and a deadline.
- The contract settles it in one transaction: It reads the router’s balance of that token, swaps the parts. Each swap must meet its minimum output before the funds are sent to their recipients.
$5,000 USDC to three destinations
The project receives $5,000 USDC in fees: 50% goes to its treasury, 30% to the team and 20% is swapped into WETH for a third wallet.
- Fees received
- $5,000 USDC
- Fee (0.20%)
- $10 USDC
- Treasury
- $2,495 USDC
- Team
- $1,497 USDC
- Third wallet, swapped
- $998 USDC into about 0.3327 WETH
- Transactions
- 1
With WETH at $3,000 USDC, the swapped part buys about 0.3327 WETH and the route carries the least it accepts for it.
What a route guarantees
- Every destination, or none: All parts go out in the same transaction, or the fees stays at the router.
- The saved parts: Each destination receives its part of the split the project saved, and only the project can change it.
- Swaps at their minimum or better: Swaps under the minimum in the route reverts the whole route.
- Received fees only: Routes move the balance of one token: the fees that already arrived there.