Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGtradeV6_1Fees ¶
func GetGtradeV6_1Fees(transfer worker.EthereumApplicationTransfer, client *ethclient.Client, fluidTokenContract ethCommon.Address, tokenDecimals int, txReceipt ethTypes.Receipt) (applications.ApplicationFeeData, error)
GetGtradeV6_1Fees returns Gtrade V6_1's fee of the amount swapped. GTrade fees are split into 3 components, RolloverFee, FundingFee (which may be negative in cases of rewards), and ClosingFee. These fees are transferred to the Pool 'Manager', as well as the token We find and add these transfers to calculate the fees TODO does not calculate fluid volume
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.