Use Cases

Infrared is built for teams that need reliable, optimized token swap execution without maintaining direct integrations with individual DEX protocols.

Trading Firms

Problem: Executing large swaps across fragmented DEX liquidity leads to suboptimal pricing. Routing through a single protocol misses better rates available elsewhere, and manually splitting orders across protocols is operationally complex.

How Infrared helps: The routing engine evaluates liquidity across all supported protocols simultaneously, finding multi-hop and split paths that minimize price impact. Configurable slippage tolerance and gas priority tiers give firms control over execution parameters.

Example scenario: A trading desk needs to swap a large WETH position into DAI. Rather than sending the full amount through a single Uniswap V3 pool and absorbing significant price impact, Infrared routes portions through Uniswap V3, Curve, and Balancer based on available depth at each protocol -- returning a single transaction that executes the entire swap atomically.

DeFi Protocols

Problem: DeFi applications that need swap functionality -- whether for rebalancing, liquidations, or user-facing features -- face a build-or-buy decision. Building a routing engine is a significant engineering investment; integrating with a single DEX limits execution quality.

How Infrared helps: A single API integration provides access to aggregated liquidity across multiple protocols. The quote-then-build flow fits naturally into smart contract execution pipelines, and the Permit2 support enables gasless approval flows for end users.

Example scenario: A yield vault protocol needs to rebalance its underlying assets periodically. Instead of hardcoding swaps through one DEX, it calls the Infrared API to get an optimized quote, verifies the expected output meets its rebalancing criteria, then builds and submits the transaction -- getting better execution without maintaining any DEX-specific code.

Aggregator Backends

Problem: Aggregator products that compare rates across protocols must maintain integration code for each DEX, handle protocol upgrades, track new pool deployments, and manage the complexity of multi-hop routing. This maintenance burden scales with every new protocol added.

How Infrared helps: Infrared handles protocol integration, pool discovery, and route optimization behind a single REST API. New protocol support is added server-side without requiring consumer changes. The split output feature (ratio_bps) enables portfolio-style swaps that aggregators can offer to their users.

Example scenario: A swap aggregator frontend wants to show users the best available rate for any token pair. It sends a quote request to Infrared, receives the optimal route with cost breakdown and estimated output, and displays the result -- without needing to query individual DEX contracts or maintain its own routing logic.

Last updated