1.0.0 • Published 1 month ago

@camp-network/uniswap-smart-order-router v1.0.0

Weekly downloads
-
License
GPL
Repository
github
Last release
1 month ago

Uniswap Smart Order Router

This repository contains routing logic for the Uniswap V3 protocol.

It searches for the most efficient way to swap token A for token B, considering splitting swaps across multiple routes and gas costs.

This repository is published as an npmjs package. Even though this repo comes with a command-line tool, we don't use this in our routing setup. Our (Routing API)https://github.com/campaign-layer/uniswap-routing-api imports this npmjs package for the routing logic.

The only time you would need to update this npmjs package is when the graph node url needs to be updated. To update the graph node url, update src/providers/v3/subgraph-provider.ts with the new url near line 67. Please update package version, and run

npm install
npm run build
npm publish --access public

You will need an NPMJS key; please ping gnarlycow for this.