aldrin

package
v0.0.0-...-07d62d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AldrinSwapInstructionSize = 25

AldrinSwapInstructionSize is the size of an Aldrin swap instruction enum

Variables

This section is empty.

Functions

func GetAldrinFees

func GetAldrinFees(solanaClient *rpc.Provider, transaction types.TransactionResult, aldrinProgramID string, fluidTokens map[string]string) (feesPaid *big.Rat, err error)

GetAldrinFees by taking 0.25% of the transaction value

Types

type SwapInstruction

type SwapInstruction struct {
	// eight bytes
	Determinant      int64
	AmountIn         int64
	MinimumAmountOut int64
	Side             int8
}

SwapInstruction is the instruction data of a Aldrin swap transaction

Jump to

Keyboard shortcuts

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