Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCamelotFees ¶
func GetCamelotFees(transfer worker.EthereumApplicationTransfer, client *ethclient.Client, fluidTokenContract ethCommon.Address, tokenDecimals int) (applications.ApplicationFeeData, error)
GetCamelotFees returns Camelot V2's fee of 0.3% of the amount swapped. If the token swapped from was the fluid token, get the exact amount, otherwise approximate the cost based on the received amount of the fluid token
func GetCamelotV3Fees ¶
func GetCamelotV3Fees(transfer worker.EthereumApplicationTransfer, client *ethclient.Client, fluidTokenContract ethCommon.Address, tokenDecimals int) (applications.ApplicationFeeData, error)
GetCamelotV3Fees returns the volume of a Camelot V3 swap. It does not yet support fee calculations and always sets the fee to 0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.