Routing

Those DEX objects are send to routing service and added to swap graph. Its vertices are tokens, edges are DEX's. Traversing this graph gives us a route, which can be later executed on a contract.

Example of a swap graph with tokens: A, B, C, .., G

Example route: A -> D -> E -> G -> D -> E -> C

Last updated