@aperture_finance/uniswap-smart-order-router
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

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/Aperture-Finance/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.

Readme

Keywords

none

Package Sidebar

Install

npm i @aperture_finance/uniswap-smart-order-router

Weekly Downloads

0

Version

0.3.1

License

GPL

Unpacked Size

3.29 MB

Total Files

430

Last publish

Collaborators

  • aureliano
  • gnarlycow
  • aperture_finance_clique