camelot

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

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.

Jump to

Keyboard shortcuts

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