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

# Functions

New returns a new bclient implementation without any authentication as well as wrappers around the uniswap and sushiswap clients.

# Variables

DAITokenAddress is the address of the MCD (Multi Collateral DAI) contract.
ErrNotEthClient is an error return when attempting to do type conversions against the blockchain interface to an ethclient, when the underlying blockchain interface is not an ethclient type.
ErrNotSimulatedBackend is an error returned when attempting to do type conversions against the blockchain interface to a simulated backend, when the underlying blockchain interface is not a simulated backend type.
WETHTokenAddress is the address of the WETH token contract.

# Structs

BClient wraps ethclient and provides helper functions for commonly used functionality.