raydium

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

Documentation

Index

Constants

View Source
const (
	// RaydiumSwapInstructionVariant is the enum vartiant of the Raydium swap instruction
	RaydiumSwapInstructionVariant = 9

	// RaydiumSwapInstructionSize is the size a Raydium swap instruction enum
	RaydiumSwapInstructionSize = 17
)

Variables

This section is empty.

Functions

func GetRaydiumFees

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

GetRaydiumFees by taking 0.25% of the transaction value

Types

type SwapInstruction

type SwapInstruction struct {
	AmountIn         int64
	MinimumAmountOut int64
}

SwapInstruction is the instruction data of a Raydium swap transaction

Jump to

Keyboard shortcuts

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