With several V2 and V3 pools, and 2 or 3 tokens per path, there may be quite a few routes to perform a swap.
This open-source python library helps you find the path(s) to swap with the best price. It can return up to 2 paths, with a percentage to divide the amount between them, easily encoded with the Uniswap Universal Router SDK.
This version adds support for:
- V2 only pools
- V3 only pools
- Custom pools and blockchains
Source on GitHub
Packaged on PyPI
Looking forward to reading any feedback you're willing to share! ๐
Uniswap Smart Path Library