TokenRouter
TheTokenRouter is the swap execution and price oracle layer. On testnet, it operates as a mock DEX that executes trades at oracle-set prices. On mainnet, it will be replaced by an RFQ system with institutional liquidity providers.
Functions
Price Oracle
Prices are updated by the backend price service via
setTokenPricesBatch().
Swap Execution
Pair Management
Only supported pairs can be swapped. All asset tokens are paired with tiltUSDC.
Testnet Behavior
On testnet, theTokenRouter (actually MockTokenRouter):
- Mints output tokens to the caller (simulates swap execution)
- Burns input tokens from the caller
- Trades at exact oracle prices (no slippage simulation)
- Prices set by an authorized reporter wallet
Mainnet Plan
On mainnet, theTokenRouter will be replaced by:
- RFQ (Request for Quote) system with Robinhood L2 market makers
- Institutional-grade liquidity for all supported assets
- Real market impact and slippage
- Settlement against actual tokenized RWA markets