sushiswap

package
v0.0.0-...-2ac5be2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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