package
0.1.5
Repository: https://github.com/etherdev12/go-defi.git
Documentation: pkg.go.dev

# Functions

GeneratePairAddress generates a pair address for the given tokens.
GetPathPairs takes in the given token path and returns the corresponding pairs.
NewClient returns a new instance of uniswap client.
Quote gets the exchange quote for a given amount of tokens and the respective pairs reserves.

# Variables

FactoryAddress points to the uniswap factory.
Router02Address points to the uniswap v2 02 router.

# Structs

Client allows to do operations on uniswap smart contracts.
Pair represents a token pair.
Reserve represents a given uniswap pair reserve.