feeestimator

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BPS           = 10000
	BaseAmplifier = 10000
)

Variables

This section is empty.

Functions

func EstimateFeeInSellToken

func EstimateFeeInSellToken(
	sellAmount uint64, sellToken string, tradePath []string, pdexState jsonresult.PdexState,
) (uint64, error)

func EstimateTradingFee

func EstimateTradingFee(
	sellAmount uint64, sellToken string, tradePath []string, pdexState jsonresult.PdexState, useFeeInPRV bool,
) (uint64, error)

func EstimatedFeeInPRV

func EstimatedFeeInPRV(
	sellAmount uint64, sellToken string, tradePath []string, pdexState jsonresult.PdexState,
) (uint64, error)

func GetPdexv3PoolDataFromRawRPCResult

func GetPdexv3PoolDataFromRawRPCResult(pdexParamRaw json.RawMessage, pdexPoolPairsRaw json.RawMessage) (*jsonresult.PdexState, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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