Skip to content

Uniswap/uniroute-public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 

Repository files navigation

UniRoute

UniRoute is Uniswap's off-chain routing engine for generating optimized swap quotes across Uniswap V2, V3, and V4 protocols + hooks.

Overview

This is the open source version of UniRoute, containing the core routing algorithm logic. It demonstrates how Uniswap discovers pools, finds optimal routes, and generates quotes across all supported blockchains.

What's Included

  • src/core/ - The heart of the routing algorithm, including:

    • Pool discovery strategies
    • Route finding and optimization
    • Quote generation and selection
    • Gas estimation
    • Swap simulation
  • src/lib/config.ts - Configuration structure (with placeholder values)

  • src/lib/poolCaching/ - Pool caching infrastructure, including:

    • Subgraph providers for V2, V3, and V4 pools
    • Cache management and S3 persistence
    • Token list caching
  • src/stores/route/uniroutes/UniRoutesRepository.ts - Protocol definitions describing which Uniswap versions are considered and when

License

MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors