gtrade

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

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.

Jump to

Keyboard shortcuts

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