xy_finance

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: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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