0.0.21 • Published 5 days ago

@spectrum-digital/spectrum-router v0.0.21

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

Spectrum Router

Routing across DEXes is a difficult endeavor, because each DEX has its own discriminatory router that rejects any path that extends his factory. On top of that, there's different implementations of routers as well. Now imagine you need to route through multiple DEXes, whether it's just to estimate a token price (routing to USDC), or perhaps for arbitrage purposes. You'd need to hop between them in a specific order, but also through multiple RPC calls. This is rather annoying to deal with. With Spectrum Router, these difficulties are abstracted out for you.

Install

yarn add @spectrum-digital/spectrum-router

Usage

A complete example can be found in the example directory here.

Contracts

As seen in the example file, an export of our custom RouterAddresses is provided. You can find the repository of said contracts here.

0.0.21

5 days ago

0.0.20

3 months ago

0.0.19

4 months ago

0.0.18

4 months ago

0.0.17

4 months ago

0.0.14

4 months ago

0.0.15

4 months ago

0.0.16

4 months ago

0.0.13

4 months ago

0.0.12

4 months ago

0.0.11

4 months ago

0.0.10

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.5

5 months ago

0.0.6

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago