Documentation ¶
Index ¶
Constants ¶
View Source
const ERC20AbiString = `` /* 216-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func GetXyFinanceSwapFees ¶
func GetXyFinanceSwapFees(transfer worker.EthereumApplicationTransfer, client *ethclient.Client, fluidTokenContract ethCommon.Address, tokenDecimals int, txReceipt ethTypes.Receipt) (applications.ApplicationFeeData, error)
GetXyFinanceSwapFees calculates fees from Swapping TokenA and TokenB crosschain Swapped tokens may not be stable, so a price oracle for approximating USD is required FeeRates, MinFee and MaxFee are calculated on and depending on the target chain, and is approximated via `xyFeeTable` xyFeeTable is sourced here: https://docs.xy.finance/products/x-swap/fee-structure
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.