Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CurveDataStartByte is the offset at which the curve data is stored CurveDataStartByte = 227 // SplMintDecimalsStartByte is the offset at which the decimals of an // spl-mint is encoded SplMintDecimalsStartByte = 44 // SwapVariant is the enum variant of swap instruction SwapVariant = 1 )
Variables ¶
This section is empty.
Functions ¶
func GetOrcaFees ¶
func GetOrcaFees(solanaClient *rpc.Provider, transaction types.TransactionResult, orcaProgramId string, fluidTokens map[string]string) (feesPaid *big.Rat, err error)
GetOrcaFees by checking that an orca swap occurred, then destructuring the swap information to get the fee %, and getting the fees paid by multiplying the value of the swap
Types ¶
Click to show internal directories.
Click to hide internal directories.