Titan's Unique Algorithm
How Titan provides outperformance
Historically, DEX aggregators have relied on shortest path algorithms to determine routes between liquidity. In doing so, they have benefited from battle tested algorithms that are simple to implement. However, given the nature of the crypto markets, latency requirements and underlying assumptions of shortest path algorithms, liquidity sources are often temporarily removed when these types of algorithms are used in order to make routing possible.
In addition to this, a specific route in a network may not have significant capacity. If the pools involved have a small TVL then the price can change rapidly as more of the users’ funds are swapped through each relevant exchange. To capture the effects of price impact, the liquidity is frequently fragmented into pieces and each pool is broken into many parts with an average price and a certain capacity. This is frequently reflected both in the algorithm and its outputs. For example, currently Jupiter, another DEX aggregator, generally chunks their routes into neat 10% buckets. This fragmentation of liquidity increases the size of the network being searched and leads to inaccuracies when the pool is poorly resolved.
These two challenges are among the main obstacles in applying shortest path methods for DEX aggregation. To address them, Titan leverages a different set of algorithms that focus on optimization, which resulted in the development of the Talos algorithm. These algorithms can efficiently resolve price impacts with machine-level precision without fragmenting pools and eliminates the need to exclude various liquidity sources, thus leading to a true optimal on-chain price.
Last updated