pancakev3

package
v0.0.0-...-bfe7aad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ethereum = iota
	Base
	BSC
	Unsupported
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client allows to do operations on uniswap smart contracts.

func NewClient

func NewClient(bc utils.Blockchain, chain int) *Client

NewClient returns a new instance of uniswap client.

func (*Client) GetFactory

func (c *Client) GetFactory(pool common.Address) (common.Address, error)

GetFactory returns the factory address for a given pool

func (*Client) GetFee

func (c *Client) GetFee(pool common.Address) (*big.Int, error)

GetFee returns the fee for a given pool

func (*Client) GetLiquidityFromPool

func (c *Client) GetLiquidityFromPool(pool common.Address) (*big.Int, error)

GetLiquidityFromPool returns the liquidity of the pool.

func (*Client) GetTokens

func (c *Client) GetTokens(pool common.Address) ([]common.Address, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL