Skip to content

raghava-pamula/routing

Repository files navigation

Uniswap V2 Router

Instructions for running:

go run rate_service.go V2Pair.go constants.go

You will be asked to input two contracts addresses, one for input token and one for output token Your input will be parsed and the midprice from the Uniswap V2 Pair will be returned, if it exists. Then, the routing algorithm will run and produce a swap route (with up to 5 swaps) that will result in the maximum possible output tokens.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published