Documentation ¶
Index ¶
- func GetSushiswapFees(transfer worker.EthereumApplicationTransfer, client *ethclient.Client, ...) (applications.ApplicationFeeData, error)
- func GetSushiswapStableOrConstantProductFees(transfer worker.EthereumApplicationTransfer, client *ethclient.Client, ...) (applications.ApplicationFeeData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSushiswapFees ¶
func GetSushiswapFees(transfer worker.EthereumApplicationTransfer, client *ethclient.Client, fluidTokenContract ethCommon.Address, tokenDecimals int) (applications.ApplicationFeeData, error)
GetSushiswapFees returns the fee paid on a Sushiswap transfer, either using a UniswapV2-style pair or a Trident StablePool
func GetSushiswapStableOrConstantProductFees ¶
func GetSushiswapStableOrConstantProductFees(transfer worker.EthereumApplicationTransfer, client *ethclient.Client, fluidTokenContract ethCommon.Address, tokenDecimals int, feeData applications.ApplicationFeeData, logTopic string) (applications.ApplicationFeeData, error)
GetSushiswapStableOrConstantProductFees to determine the fee paid for a Sushiswap Trident Stable Swap or a Constant Product Swap. Both are identical except for the use of decimals0/decimals1 for Stable Swaps vs decimals for Constant Product Swaps
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.