Flytrade
UpdatedFly routes token swaps through liquidity available on existing decentralized exchanges (DEXs). For a supported pair, it can draw from multiple DEXs when combining their liquidity improves pricing. Fly supplies aggregation, routing, and execution; it does not host its own liquidity pools.
Pool Liquidity and Route Allocation
- DEX Pools
- Liquidity pools are smart contracts containing assets available for exchange. Pools serving the same token pair can have different amounts of liquidity and different prices.
- Price Impact
- Price impact is the effect a trade has on an asset's price because of the order's size relative to pool liquidity. Larger orders relative to the available liquidity generally produce greater price impact.
- Multi-DEX Routing
- Fly can draw liquidity from more than one DEX for a requested swap when the combination gives a better price.
- Liquidity Source Selection
- Fly's settings allow supported liquidity sources to be enabled or disabled on the connected chain. Those selections determine which sources remain available to its router.
Differences between pools explain why the amount being swapped matters. A pool offering an attractive price for a small order may produce greater price impact for a larger order. Combining sources gives Fly another way to obtain liquidity for that particular amount, subject to the prices available from those sources.
A Hypothetical Split Route on Sonic
For a hypothetical USDC.e-to-stS swap on Sonic, would two pool allocations offer more stS than one pool for the same input? All amounts, allocations, and output estimates below are hypothetical, with fees and gas costs held equal between the routes.
- Total Input
- 1,274 USDC.e for either route.
- Single-Pool Estimate
- One DEX pool offers an estimated 3,612 stS for the full 1,274 USDC.e.
- Split-Route Estimates
- A first DEX pool receives an allocation of 514 USDC.e and offers an estimated 1,468 stS. A second DEX pool receives the remaining 760 USDC.e and offers an estimated 2,174 stS.
The allocations account for the full input: 514 + 760 = 1,274 USDC.e. Their combined output estimate is 1,468 + 2,174 = 3,642 stS, which is 30 stS more than the single-pool estimate under the equal-cost assumption.
Changing the allocation or either pool's estimate changes the combined result and requires comparing the routes again. These hypothetical estimates do not establish what a live swap will deliver.
DEX Routing and Cross-Chain Execution
- Same-Chain Swaps
- The input and output tokens are on the same blockchain. Fly's aggregation brings together supported DEX liquidity for the exchange on that chain.
- Cross-Chain Swaps
- The selected tokens are on different supported blockchains. Fly uses bridges and their messaging layers to coordinate cross-chain execution alongside the token exchanges.
- Bridge Selection
- Fly's settings allow supported bridges to be enabled or disabled. Bridge selection concerns the cross-chain part of a route, while liquidity source selection concerns the exchanges available for token swaps.
Fly can arrange these components through one interface, so users do not have to visit each underlying bridge and DEX separately. Bridge infrastructure still participates in cross-chain execution; combining DEX liquidity alone does not connect two blockchains.
Quoted Output, Slippage, and Router Permission
- Quoted Output
- A quote provides an estimated output for the selected swap inputs and route. Refreshing the quote requests updated pricing.
- Slippage Tolerance
- Slippage is the price change between submitting a transaction and its execution. Fly's slippage setting limits the price movement allowed during execution. Price impact concerns the order's effect on pool pricing, so these terms describe different effects.
- ERC-20 Router Allowance
-
In the documented EVM API flow, building a transaction with
estimateGas=truerequires sufficient token balance and, when the input is an ERC-20 token, sufficient approval for the router contract. Receiving a quote alone does not establish that the router has permission to spend the wallet's tokens.